x.c 394 B

12345678910111213141516171819202122232425262728
  1. // Example usage of the test harness.
  2. #include "test.h"
  3. int main(int argc, char* argv[]) {
  4. if (argc == 2)
  5. return run_single_test(argv[1]);
  6. return run_tests();
  7. }
  8. // no initialization needed before each test
  9. void reset(void) {}
  10. // Example tests.
  11. void test_1(void) {
  12. CHECK(true);
  13. }
  14. void test_2(void) {
  15. CHECK(2+2 == 4);
  16. }
  17. // failing test
  18. void test_3(void) {
  19. CHECK(2+2 == 5);
  20. }