Lines Matching refs:TEST

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()
26 TEST(ul, strtoul("4294967295", 0, 0), 4294967295UL, "max 32bit unsigned %lu != %lu"); in strtol_entry()
30 TEST(l, strtol(s = "2147483648", &c, 0), 2147483647L, "uncaught overflow %ld != %ld"); in strtol_entry()
32 TEST(l, strtol(s = "-2147483649", &c, 0), -2147483647L - 1, "uncaught overflow %ld != %ld"); in strtol_entry()
34 TEST(ul, strtoul(s = "4294967296", &c, 0), 4294967295UL, "uncaught overflow %lu != %lu"); 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()
40 TEST(ul, strtoul(s = "-2147483648", &c, 0), -2147483648UL, "rejected negative %lu != %lu"); in strtol_entry()
42 TEST(ul, strtoul(s = "-2147483649", &c, 0), -2147483649UL, "rejected negative %lu != %lu"); in strtol_entry()
44TEST(ul, strtoul(s = "-4294967296", &c, 0), 4294967295UL, "uncaught negative overflow %lu != %lu"); in strtol_entry()
49TEST(l, strtol(s = "9223372036854775808", &c, 0), 9223372036854775807L, "uncaught overflow %ld != … in strtol_entry()
51TEST(l, strtol(s = "-9223372036854775809", &c, 0), -9223372036854775807L - 1, "uncaught overflow %… in strtol_entry()
53TEST(ul, strtoul(s = "18446744073709551616", &c, 0), 18446744073709551615UL, "uncaught overflow %l… in strtol_entry()
55 TEST(ul, strtoul(s = "-1", &c, 0), -1UL, "rejected negative %lu != %lu"); in strtol_entry()
57 TEST(ul, strtoul(s = "-2", &c, 0), -2UL, "rejected negative %lu != %lu"); in strtol_entry()
59TEST(ul, strtoul(s = "-9223372036854775808", &c, 0), -9223372036854775808UL, "rejected negative %l… in strtol_entry()
61TEST(ul, strtoul(s = "-9223372036854775809", &c, 0), -9223372036854775809UL, "rejected negative %l… in strtol_entry()
63TEST(ul, strtoul(s = "-18446744073709551616", &c, 0), 18446744073709551615UL, "uncaught negative o… in strtol_entry()
73TEST(ll, strtoll(s = "9223372036854775808", &c, 0), 9223372036854775807LL, "uncaught overflow %lld… in strtol_entry()
75TEST(ll, strtoll(s = "-9223372036854775809", &c, 0), -9223372036854775807LL - 1, "uncaught overflo… in strtol_entry()
77TEST(ull, strtoull(s = "18446744073709551616", &c, 0), 18446744073709551615ULL, "uncaught overflow… in strtol_entry()
79 TEST(ull, strtoull(s = "-1", &c, 0), -1ULL, "rejected negative %llu != %llu"); in strtol_entry()
81 TEST(ull, strtoull(s = "-2", &c, 0), -2ULL, "rejected negative %llu != %llu"); in strtol_entry()
83TEST(ull, strtoull(s = "-9223372036854775808", &c, 0), -9223372036854775808ULL, "rejected negative… in strtol_entry()
85TEST(ull, strtoull(s = "-9223372036854775809", &c, 0), -9223372036854775809ULL, "rejected negative… in strtol_entry()
87TEST(ull, strtoull(s = "-18446744073709551616", &c, 0), 18446744073709551615ULL, "uncaught negativ… in strtol_entry()
95 TEST(l, strtol("z", 0, 36), 35L, "%ld != %ld"); in strtol_entry()
96 TEST(l, strtol("00010010001101000101011001111000", 0, 2), 0x12345678L, "%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()
112 TEST(l, strtol(s = " 1", &c, 0), 1, "%ld != %ld"); in strtol_entry()