From 7bd050ccf74222e1b659f2fd6826a86e6afbcc94 Mon Sep 17 00:00:00 2001 From: nodist Date: Tue, 6 Oct 2026 17:13:01 -0400 Subject: basic tests --- test/README | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 test/README (limited to 'test/README') 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"); -- cgit v1.2.3