Compare commits

..

No commits in common. "main" and "v0.1" have entirely different histories.
main ... v0.1

6 changed files with 0 additions and 64 deletions

21
LICENSE
View File

@ -1,21 +0,0 @@
MIT License
Copyright (c) 2021 dm1sh
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -13,29 +13,3 @@ run_tests();
...
```
# Currently builtin matchers
You can use the following functions or just pass boolean value as first argument of `test()`
- `int is_equal(void *res, void *correct)`
- `int is_true(void *res)`
- `int is_false(void *res)`
- `int is_equal_array(void **res, int size, void **correct)`
- `int not(void *res)`
# Installation:
```bash
make clean
make CT_VERSION=1
sudo make install CT_VERSION=1
```
# Uninstall:
It is also required for update
```bash
sudo make uninstall CT_VERSION=1
```

View File

@ -4,7 +4,5 @@
int is_equal(void *res, void *correct);
int is_true(void *res);
int is_false(void *res);
int is_equal_array(void **res, int size, void **correct);
int not(void *res);
#endif

BIN
obj/ctest.o Normal file

Binary file not shown.

BIN
obj/funcs.o Normal file

Binary file not shown.

View File

@ -14,18 +14,3 @@ int is_false(void *res)
{
return !res;
}
int is_equal_array(void **res, int size, void **correct)
{
for (int i = 0; i < size; i++)
if (res[i])
if (res[i] != correct[i])
return 0;
return 1;
}
int not(void *res)
{
return !res;
}