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.
This commit is contained in:
2024-04-28 19:06:44 +05:30
parent 06a883d538
commit 26a8fac732
2 changed files with 29 additions and 14 deletions

View File

@@ -36,7 +36,6 @@ void testing_lib_bytes_to_hword(void)
assert(false);
}
}
SUCCESS(__func__, "%s\n", "Test succeeded");
}
void testing_lib_bytes_to_word(void)
@@ -60,9 +59,9 @@ void testing_lib_bytes_to_word(void)
assert(false);
}
}
SUCCESS(__func__, "%s\n", "Test succeeded");
}
TEST_SUITE(test_lib, testing_lib_bytes_to_hword, testing_lib_bytes_to_word);
TEST_SUITE(test_lib, CREATE_TEST(testing_lib_base_bytes_to_hword),
CREATE_TEST(testing_lib_base_bytes_to_word));
#endif