Home
last modified time | relevance | path

Searched refs:test_assert (Results 1 – 2 of 2) sorted by relevance

/hal_rpi_pico-latest/test/pico_float_test/
Dpico_double_test.c25 #define test_assert(x) ({ if (!(x)) { printf("Assertion failed: ");puts(#x);printf(" at " __FILE__… macro
290 #define assert_nan(a) test_assert(isnan(a))
324 #define assert_close(a, b) test_assert((fabs(a - b) <= allowed_range(a) || ({ printf(" error: %f !…
325 #define check1(func,p0) ({ typeof(p0) r = func(p0), r2 = __CONCAT(__real_, func)(p0); test_assert(r…
326 …p1) ({ typeof(p0) r = func(p0,p1), r2 = __CONCAT(__real_, func)(p0,p1); test_assert(r == r2); r; })
467 test_assert(__aeabi_d2lz(x) == INT64_MIN); in main()
476 test_assert(__aeabi_d2lz(x) == INT64_MAX); in main()
489 test_assert(__aeabi_d2iz(x) == INT32_MAX); in main()
Dpico_float_test.c25 #define test_assert(x) ({ if (!(x)) { printf("Assertion failed: ");puts(#x);printf(" at " __FILE__… macro
289 #define assert_nan(a) test_assert(isnanf(a))
327 #define assert_close(a, b) test_assert((fabsf(a - b) <= allowed_range(a) || ({ printf(" error: %f …
328 #define check1(func,p0) ({ typeof(p0) r = func(p0), r2 = __CONCAT(__real_, func)(p0); test_assert(r…
329 …p1) ({ typeof(p0) r = func(p0,p1), r2 = __CONCAT(__real_, func)(p0,p1); test_assert(r == r2); r; })
532 test_assert(__aeabi_f2lz(x) == INT64_MAX); in main()
549 test_assert(__aeabi_f2iz(x) == INT32_MAX); in main()