2 #include "Util/utils.h"
5 #include "Util/types.h"
11 FILE* file
= fopen("../data/test/integers.txt", "rb");
14 LUT_ASSERT(x
== 1234);
16 LUT_ASSERT(x
== -987);
18 LUT_ASSERT(x
== 654321);
22 LUT_ASSERT(x
== 345678);
24 LUT_ASSERT(x
== -1234);
31 FILE* file
= fopen("../data/test/reals.txt", "rb");
34 LUT_ASSERT(fabs(x
- 1234.056) < tol
);
36 LUT_ASSERT(fabs(x
- 987e-3) < tol
);
38 LUT_ASSERT(fabs(x
- -654321e-2) < tol
);
40 LUT_ASSERT(fabs(x
- 12.34567) < tol
);
42 LUT_ASSERT(fabs(x
- 345678.0) < tol
);
44 LUT_ASSERT(fabs(x
- -1234.05) < tol
);
46 LUT_ASSERT(fabs(x
- 3e-1) < tol
);
48 LUT_ASSERT(fabs(x
- -1.0188) < tol
);