Searched refs:TEST (Results 1 – 1 of 1) sorted by relevance
| /examples/utest/testcases/posix/stdlib_h/functions/ |
| A D | strtol_tc.c | 6 #define TEST(r, f, x, m) uassert_int_equal(f, x) macro 24 TEST(l, atol("2147483647"), 2147483647L, "max 32bit signed %ld != %ld"); in strtol_entry() 25 TEST(l, strtol("2147483647", 0, 0), 2147483647L, "max 32bit signed %ld != %ld"); in strtol_entry() 36 TEST(ul, strtoul(s = "-1", &c, 0), -1UL, "rejected negative %lu != %lu"); in strtol_entry() 38 TEST(ul, strtoul(s = "-2", &c, 0), -2UL, "rejected negative %lu != %lu"); in strtol_entry() 95 TEST(l, strtol("z", 0, 36), 35L, "%ld != %ld"); in strtol_entry() 97 TEST(l, strtol(s = "0F5F", &c, 16), 0x0f5fL, "%ld != %ld"); in strtol_entry() 99 TEST(l, strtol(s = "0xz", &c, 16), 0L, "%ld != %ld"); in strtol_entry() 102 TEST(l, strtol(s = "0x1234", &c, 16), 0x1234, "%ld != %ld"); in strtol_entry() 109 TEST(l, strtol(s = " 15437", &c, 8), 015437, "%ld != %ld"); in strtol_entry() [all …]
|
Completed in 3 milliseconds