test.c 466 B

1234567891011121314151617181920212223
  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. int result = (term_tests() | htable_tests() );
  7. printf("Test result: %lu\n", (size_t)result);
  8. if (result != 0) {
  9. printf("Test failed.");
  10. }
  11. else {
  12. printf("ALL TESTS PASSED\n");
  13. }
  14. printf("Tests run: %d\n", tests_run);
  15. return result != 0;
  16. }