summaryrefslogtreecommitdiff
path: root/source/tests/test_too_many_assertions.c
blob: ffff0937d0ae8ac0cab3d428f88954fb4ad12443 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#define KIT_TEST_IMPLEMENTATION
#define KIT_TEST_ASSERTIONS_LIMIT 10
#include "../kit/kit_test.h"

TEST("foo") {
  int i;
  for (i = 0; i <= KIT_TEST_ASSERTIONS_LIMIT; i++) REQUIRE(1);
}

int main(int argc, char **argv) {
  if (run_tests(argc, argv) != 1)
    return 1;

  return 0;
}

#undef KIT_TEST_FILE