diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-10-06 17:13:01 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-10-06 17:13:01 -0400 |
| commit | 7bd050ccf74222e1b659f2fd6826a86e6afbcc94 (patch) | |
| tree | 30bae9ca5dd110f32cd4abb10d42ea4d872b4d82 /test/README | |
| parent | de65adbc1b2d1b3efdbe6a023bb7435f84b2f3a7 (diff) | |
basic tests
Diffstat (limited to 'test/README')
| -rw-r--r-- | test/README | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/README b/test/README new file mode 100644 index 0000000..4ef67e0 --- /dev/null +++ b/test/README @@ -0,0 +1,31 @@ +Test Files + +--- + +Testing: + +Each test is a function wrapped in a macro + +KPL_TEST(my_test) { + // code here +} + +Each test passes by default + +--- + +Testing Macros: + +The testing framework provides two macros KPL_ASSERT and KPL_FAIL + +Both macros can only be used inside a KPL_TEST function + +Asserting: + +KPL_ASSSERT(condition, "Fail Message"); + +--- + +Failing: + +KPL_FAIL("The test failed"); |
