Aryadev Chavali
a9f81992ab
Update copyright notices and top level licenses
2024-06-25 00:48:43 +01:00
Aryadev Chavali
91af3e14ef
Clean up code
2024-05-05 20:20:25 +05:30
Aryadev Chavali
cd6eeeeafe
Fix some undefined behaviour in tests
2024-04-29 00:11:35 +05:30
Aryadev Chavali
fadc61c2b0
INFO(..."Testing ... = ...") to "Testing ... -> ..."
2024-04-28 23:30:48 +05:30
Aryadev Chavali
15ed8e32c2
test_lib -> test_lib_base and implement remaining tests for base
...
Also refactored tests to new byteswap method
2024-04-28 22:33:35 +05:30
Aryadev Chavali
7ca9f1b98b
Added test_lib_base_hword_to_bytes
2024-04-28 20:57:24 +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
a0857b9090
test WORD_NTH_* and WORD_SAFE_SUB, ~refactored general testing code
...
The new general testing procedure is making a structure for tests that
include all the samples and expected results, then iterating over them
to run the test.
2024-04-28 19:08:20 +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
06a883d538
Made lib/base conversion functions const where possible
2024-04-28 17:41:17 +05:30
Aryadev Chavali
cf6aa96539
Wrote tests for lib/base.h's convert_bytes_to_* functions
...
Just runs a sample of suitably byte arrays with an expected set of
functions. The samples are in little endian format and the outputs
are what we expect them to be. This should run regardless of the
endian of your machine.
2024-04-28 17:35:46 +05:30