Lines Matching full:test
29 * f = function call to test (or any expression)
39 #define TEST(r, f, x, m) ( \ macro
60 TEST(l, atol("2147483647"), 2147483647L, "max 32bit signed %ld != %ld"); in test_strtol()
62 TEST(l, strtol("2147483647", 0, 0), 2147483647L, "max 32bit signed %ld != %ld"); in test_strtol()
63 TEST(ul, strtoul("4294967295", 0, 0), 4294967295UL, "max 32bit unsigned %lu != %lu"); in test_strtol()
67 TEST(l, strtol(s="2147483648", &c, 0), 2147483647L, "uncaught overflow %ld != %ld"); in test_strtol()
71 TEST(l, strtol(s="-2147483649", &c, 0), -2147483647L-1, "uncaught overflow %ld != %ld"); in test_strtol()
75 TEST(ul, strtoul(s="4294967296", &c, 0), 4294967295UL, "uncaught overflow %lu != %lu"); in test_strtol()
79 TEST(ul, strtoul(s="-1", &c, 0), -1UL, "rejected negative %lu != %lu"); in test_strtol()
83 TEST(ul, strtoul(s="-2", &c, 0), -2UL, "rejected negative %lu != %lu"); in test_strtol()
87 TEST(ul, strtoul(s="-2147483648", &c, 0), -2147483648UL, "rejected negative %lu != %lu"); in test_strtol()
91 TEST(ul, strtoul(s="-2147483649", &c, 0), -2147483649UL, "rejected negative %lu != %lu"); in test_strtol()
96 …TEST(l, strtol(s="9223372036854775808", &c, 0), 9223372036854775807L, "uncaught overflow %ld != %l… in test_strtol()
100 …TEST(l, strtol(s="-9223372036854775809", &c, 0), -9223372036854775807L-1, "uncaught overflow %ld !… in test_strtol()
104 …TEST(ul, strtoul(s="18446744073709551616", &c, 0), 18446744073709551615UL, "uncaught overflow %lu … in test_strtol()
108 TEST(ul, strtoul(s="-1", &c, 0), -1UL, "rejected negative %lu != %lu"); in test_strtol()
112 TEST(ul, strtoul(s="-2", &c, 0), -2UL, "rejected negative %lu != %lu"); in test_strtol()
116 …TEST(ul, strtoul(s="-9223372036854775808", &c, 0), -9223372036854775808UL, "rejected negative %lu … in test_strtol()
120 …TEST(ul, strtoul(s="-9223372036854775809", &c, 0), -9223372036854775809UL, "rejected negative %lu … in test_strtol()
125 TEST(l, strtol("z", 0, 36), 35, "%ld != %ld"); in test_strtol()
126 TEST(l, strtol("00010010001101000101011001111000", 0, 2), 0x12345678, "%ld != %ld"); in test_strtol()
127 TEST(l, strtol(s="0F5F", &c, 16), 0x0f5f, "%ld != %ld"); in test_strtol()
129 TEST(l, strtol(s="0xz", &c, 16), 0, "%ld != %ld"); in test_strtol()
132 TEST(l, strtol(s="0x1234", &c, 16), 0x1234, "%ld != %ld"); in test_strtol()
152 TEST(l, strtol(s=delim_buf, &c, 16), 0x09af0 | k, "%ld != %ld"); in test_strtol()
155 TEST(l, strtol(s=delim_buf, &c, 16), 0x09af, "%ld != %ld"); in test_strtol()
162 TEST(l, strtol(s="123", &c, 37), 0, "%ld != %ld"); in test_strtol()
166 TEST(l, strtol(s=" 15437", &c, 8), 015437, "%ld != %ld"); in test_strtol()
169 TEST(l, strtol(s=" 1", &c, 0), 1, "%ld != %ld"); in test_strtol()