test.c 413 B

12345678910111213141516171819202122
  1. #include "test_term.c"
  2. #include "test_htable.c"
  3. #include "test_graph.c"
  4. int main(int argc, char **argv) {
  5. int result = (term_tests() | htable_tests() | graph_tests());
  6. printf("Test result: %lu\n", (size_t)result);
  7. if (result != 0) {
  8. printf("Test failed.");
  9. }
  10. else {
  11. printf("ALL TESTS PASSED\n");
  12. }
  13. printf("Tests run: %d\n", tests_run);
  14. return result != 0;
  15. }