From cd1e69e13d8dc1df57b5f371edc3f23ceb9bafc1 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov <0x7fffff@guattari.ru> Date: Mon, 8 Aug 2022 02:50:03 +0400 Subject: Add tests --- source/test/programs/too_many_assertions.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 source/test/programs/too_many_assertions.c (limited to 'source/test/programs/too_many_assertions.c') diff --git a/source/test/programs/too_many_assertions.c b/source/test/programs/too_many_assertions.c new file mode 100644 index 0000000..846970f --- /dev/null +++ b/source/test/programs/too_many_assertions.c @@ -0,0 +1,12 @@ +#include "../../kit_test/test.h" + +TEST("foo") { + for (int 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; +} -- cgit v1.2.3