initial
This commit is contained in:
26
tests/test.c
Normal file
26
tests/test.c
Normal file
@@ -0,0 +1,26 @@
|
||||
#include "greatest.h"
|
||||
#include "../silleee.h"
|
||||
|
||||
#define DELTA 0.01
|
||||
|
||||
#define ASSERT_DELTA(expected, actual) {\
|
||||
double delta = expected-actual;\
|
||||
ASSERT_IN_RANGE(0, delta, DELTA);\
|
||||
}
|
||||
|
||||
TEST silleee_zeros_is_zero() {
|
||||
}
|
||||
|
||||
SUITE(tests) {
|
||||
RUN_TEST(silly_zeros_is_zero);
|
||||
}
|
||||
|
||||
GREATEST_MAIN_DEFS();
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
GREATEST_MAIN_BEGIN();
|
||||
|
||||
RUN_SUITE(tests);
|
||||
|
||||
GREATEST_MAIN_END();
|
||||
}
|
Reference in New Issue
Block a user