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.
This commit is contained in:
2024-04-28 17:35:46 +05:30
parent ab839efbcd
commit cf6aa96539
2 changed files with 69 additions and 1 deletions

View File

@@ -10,9 +10,10 @@
* Description:
*/
#include <stdio.h>
#include "./test-base.h"
int main(void)
{
RUN_TEST_SUITE(test_lib);
return 0;
}