rktest
rktest copied to clipboard
A small C unit test library closely mimicking Google Test
It would be convenient to be able to immediately fail a test ```C if (some_condition) { FAIL_INFO("Some specific unexpected situation happened!"); } ``` Google Test has: ```C FAIL(); // fatal...
It would be very useful to have an assertion that checks two arrays to be equal, and that has useful printouts when the arrays are _not_ equal. e.g. ``` [1,...
Port the `--gtest_break_on_failure` option to RK Test. Consider inlining this header file for portable debugbreak functionality https://github.com/scottt/debugbreak/blob/master/debugbreak.h
Discovered an issue while compiling with `cmake -DCMAKE_BUILD_TYPE=Release`, ``` In function ‘strncpy’, inlined from ‘parse_args’ at /rktest/include/rktest/rktest.h:929:4, inlined from ‘initialize’ at /rktest/include/rktest/rktest.h:981:27, /rktest/include/rktest/rktest.h:1188:27: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:95:10: error: ‘__builtin___strncpy_chk’ specified bound depends on...
As described in the nextafterf(3) man page for glibc, we check for the POSIX version and then provide our own definition of nextafterf if glibc does not.
I would like to contribute to RKTest, and saw that it uses `pytest` and snapshot tests. I'm familiar with Python and with the concept of snapshot tests, but not pytest...