Criterion/samples/fixtures.c
2015-03-09 20:25:19 +01:00

14 lines
242 B
C

#include <criterion/criterion.h>
#include <stdio.h>
void setup(void) {
puts("Runs before the test");
}
void teardown(void) {
puts("Runs after the test");
}
Test(simple, fixtures, .init = setup, .fini = teardown) {
assert(1);
}