Commit Graph

5 Commits

Author SHA1 Message Date
Aryadev Chavali
e8671042df Add angle brackets to suite output 2024-04-29 00:11:50 +05:30
Aryadev Chavali
dede607036 If VERBOSE >= 1 then RUN_TEST_SUITE logs for each test of the suite 2024-04-28 22:32:18 +05:30
Aryadev Chavali
8c0bebc8ea Function to generate string representation of byte array in testing.h 2024-04-28 20:57:16 +05:30
Aryadev Chavali
26a8fac732 Updated testing library to make writing tests easier
Success is printed by the RUN_TEST_SUITE macro so we don't need to add
that boilerplate.
2024-04-28 19:06:44 +05:30
Aryadev Chavali
ab839efbcd Defined a base testing library header
This defines useful macros, in particular to print information and to
define tests and test suites.

The idea is a suite will be a set of test functions, where a test
function will fail <=> an assert is called.  This allows us to stop
testing immediately upon a test failing and produce viable output.
2024-04-28 17:27:42 +05:30