Add TEST names to the harness #9
Loading…
Reference in a new issue
No description provided.
Delete branch "fputs/test-macro"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
TEST(name)toinclude/lftest.h. A failing assert inside the following block prints the name plus the existing file, line, and expression. A passing block prints nothing. Asserts outsideTESTkeep the old line.TEST_REPORTstill printspassed/totaland returns 0 or 1. Counters staystaticper translation unit.ASSERT_EQstill prints through(long long)(intptr_t).tests/test_bitops.cwraps theLF_BIT_SETchecks once so the macro is compiled.docs/test.mdnotes that a multi-file binary must report from the translation unit that ran the asserts.Tested with
-DCMAKE_BUILD_TYPE=Debug -DFLINT_SANITIZE=ON -DCMAKE_C_EXTENSIONS=OFF.ctest --label-exclude slow: 25/25 passed.