Lines Matching refs:SNPRINTF_TEST
19 #define SNPRINTF_TEST(output, format, ...) \ macro
34 SNPRINTF_TEST("0", "%b", 0); in ATF_TC_BODY()
35 SNPRINTF_TEST(" 0", "%12b", 0); in ATF_TC_BODY()
36 SNPRINTF_TEST("000000000000", "%012b", 0); in ATF_TC_BODY()
37 SNPRINTF_TEST("1", "%b", 1); in ATF_TC_BODY()
38 SNPRINTF_TEST(" 1", "%12b", 1); in ATF_TC_BODY()
39 SNPRINTF_TEST("000000000001", "%012b", 1); in ATF_TC_BODY()
40 SNPRINTF_TEST("1111111111111111111111111111111", "%b", INT_MAX); in ATF_TC_BODY()
41 SNPRINTF_TEST("0", "%#b", 0); in ATF_TC_BODY()
42 SNPRINTF_TEST(" 0", "%#12b", 0); in ATF_TC_BODY()
43 SNPRINTF_TEST("000000000000", "%#012b", 0); in ATF_TC_BODY()
44 SNPRINTF_TEST("0b1", "%#b", 1); in ATF_TC_BODY()
45 SNPRINTF_TEST(" 0b1", "%#12b", 1); in ATF_TC_BODY()
46 SNPRINTF_TEST("0b0000000001", "%#012b", 1); in ATF_TC_BODY()
47 SNPRINTF_TEST("0b1111111111111111111111111111111", "%#b", INT_MAX); in ATF_TC_BODY()
53 SNPRINTF_TEST("0", "%B", 0); in ATF_TC_BODY()
54 SNPRINTF_TEST(" 0", "%12B", 0); in ATF_TC_BODY()
55 SNPRINTF_TEST("000000000000", "%012B", 0); in ATF_TC_BODY()
56 SNPRINTF_TEST("1", "%B", 1); in ATF_TC_BODY()
57 SNPRINTF_TEST(" 1", "%12B", 1); in ATF_TC_BODY()
58 SNPRINTF_TEST("000000000001", "%012B", 1); in ATF_TC_BODY()
59 SNPRINTF_TEST("1111111111111111111111111111111", "%B", INT_MAX); in ATF_TC_BODY()
60 SNPRINTF_TEST("0", "%#B", 0); in ATF_TC_BODY()
61 SNPRINTF_TEST(" 0", "%#12B", 0); in ATF_TC_BODY()
62 SNPRINTF_TEST("000000000000", "%#012B", 0); in ATF_TC_BODY()
63 SNPRINTF_TEST("0B1", "%#B", 1); in ATF_TC_BODY()
64 SNPRINTF_TEST(" 0B1", "%#12B", 1); in ATF_TC_BODY()
65 SNPRINTF_TEST("0B0000000001", "%#012B", 1); in ATF_TC_BODY()
66 SNPRINTF_TEST("0B1111111111111111111111111111111", "%#B", INT_MAX); in ATF_TC_BODY()
72 SNPRINTF_TEST("0", "%d", 0); in ATF_TC_BODY()
73 SNPRINTF_TEST(" 0", "%12d", 0); in ATF_TC_BODY()
74 SNPRINTF_TEST("000000000000", "%012d", 0); in ATF_TC_BODY()
75 SNPRINTF_TEST("1", "%d", 1); in ATF_TC_BODY()
76 SNPRINTF_TEST(" 1", "%12d", 1); in ATF_TC_BODY()
77 SNPRINTF_TEST("000000000001", "%012d", 1); in ATF_TC_BODY()
78 SNPRINTF_TEST("2147483647", "%d", INT_MAX); in ATF_TC_BODY()
79 SNPRINTF_TEST(" 2147483647", "%12d", INT_MAX); in ATF_TC_BODY()
80 SNPRINTF_TEST("002147483647", "%012d", INT_MAX); in ATF_TC_BODY()
81 SNPRINTF_TEST("2,147,483,647", "%'d", INT_MAX); in ATF_TC_BODY()
87 SNPRINTF_TEST("0", "%x", 0); in ATF_TC_BODY()
88 SNPRINTF_TEST(" 0", "%12x", 0); in ATF_TC_BODY()
89 SNPRINTF_TEST("000000000000", "%012x", 0); in ATF_TC_BODY()
90 SNPRINTF_TEST("1", "%x", 1); in ATF_TC_BODY()
91 SNPRINTF_TEST(" 1", "%12x", 1); in ATF_TC_BODY()
92 SNPRINTF_TEST("000000000001", "%012x", 1); in ATF_TC_BODY()
93 SNPRINTF_TEST("7fffffff", "%x", INT_MAX); in ATF_TC_BODY()
94 SNPRINTF_TEST(" 7fffffff", "%12x", INT_MAX); in ATF_TC_BODY()
95 SNPRINTF_TEST("00007fffffff", "%012x", INT_MAX); in ATF_TC_BODY()
96 SNPRINTF_TEST("0", "%#x", 0); in ATF_TC_BODY()
97 SNPRINTF_TEST(" 0", "%#12x", 0); in ATF_TC_BODY()
98 SNPRINTF_TEST("000000000000", "%#012x", 0); in ATF_TC_BODY()
99 SNPRINTF_TEST("0x1", "%#x", 1); in ATF_TC_BODY()
100 SNPRINTF_TEST(" 0x1", "%#12x", 1); in ATF_TC_BODY()
101 SNPRINTF_TEST("0x0000000001", "%#012x", 1); in ATF_TC_BODY()
102 SNPRINTF_TEST("0x7fffffff", "%#x", INT_MAX); in ATF_TC_BODY()
103 SNPRINTF_TEST(" 0x7fffffff", "%#12x", INT_MAX); in ATF_TC_BODY()
104 SNPRINTF_TEST("0x007fffffff", "%#012x", INT_MAX); in ATF_TC_BODY()
110 SNPRINTF_TEST("0", "%X", 0); in ATF_TC_BODY()
111 SNPRINTF_TEST(" 0", "%12X", 0); in ATF_TC_BODY()
112 SNPRINTF_TEST("000000000000", "%012X", 0); in ATF_TC_BODY()
113 SNPRINTF_TEST("1", "%X", 1); in ATF_TC_BODY()
114 SNPRINTF_TEST(" 1", "%12X", 1); in ATF_TC_BODY()
115 SNPRINTF_TEST("000000000001", "%012X", 1); in ATF_TC_BODY()
116 SNPRINTF_TEST("7FFFFFFF", "%X", INT_MAX); in ATF_TC_BODY()
117 SNPRINTF_TEST(" 7FFFFFFF", "%12X", INT_MAX); in ATF_TC_BODY()
118 SNPRINTF_TEST("00007FFFFFFF", "%012X", INT_MAX); in ATF_TC_BODY()
119 SNPRINTF_TEST("0", "%#X", 0); in ATF_TC_BODY()
120 SNPRINTF_TEST(" 0", "%#12X", 0); in ATF_TC_BODY()
121 SNPRINTF_TEST("000000000000", "%#012X", 0); in ATF_TC_BODY()
122 SNPRINTF_TEST("0X1", "%#X", 1); in ATF_TC_BODY()
123 SNPRINTF_TEST(" 0X1", "%#12X", 1); in ATF_TC_BODY()
124 SNPRINTF_TEST("0X0000000001", "%#012X", 1); in ATF_TC_BODY()
125 SNPRINTF_TEST("0X7FFFFFFF", "%#X", INT_MAX); in ATF_TC_BODY()
126 SNPRINTF_TEST(" 0X7FFFFFFF", "%#12X", INT_MAX); in ATF_TC_BODY()
127 SNPRINTF_TEST("0X007FFFFFFF", "%#012X", INT_MAX); in ATF_TC_BODY()
133 SNPRINTF_TEST("0", "%w8d", (int8_t)0); in ATF_TC_BODY()
134 SNPRINTF_TEST("-128", "%w8d", (int8_t)SCHAR_MIN); in ATF_TC_BODY()
135 SNPRINTF_TEST("127", "%w8d", (int8_t)SCHAR_MAX); in ATF_TC_BODY()
136 SNPRINTF_TEST("0", "%w8u", (uint8_t)0); in ATF_TC_BODY()
137 SNPRINTF_TEST("255", "%w8u", (uint8_t)UCHAR_MAX); in ATF_TC_BODY()
139 SNPRINTF_TEST("0", "%w16d", (int16_t)0); in ATF_TC_BODY()
140 SNPRINTF_TEST("-32768", "%w16d", (int16_t)SHRT_MIN); in ATF_TC_BODY()
141 SNPRINTF_TEST("32767", "%w16d", (int16_t)SHRT_MAX); in ATF_TC_BODY()
142 SNPRINTF_TEST("0", "%w16u", (uint16_t)0); in ATF_TC_BODY()
143 SNPRINTF_TEST("65535", "%w16u", (uint16_t)USHRT_MAX); in ATF_TC_BODY()
145 SNPRINTF_TEST("0", "%w32d", (int32_t)0); in ATF_TC_BODY()
146 SNPRINTF_TEST("-2147483648", "%w32d", (int32_t)INT_MIN); in ATF_TC_BODY()
147 SNPRINTF_TEST("2147483647", "%w32d", (int32_t)INT_MAX); in ATF_TC_BODY()
148 SNPRINTF_TEST("0", "%w32u", (uint32_t)0); in ATF_TC_BODY()
149 SNPRINTF_TEST("4294967295", "%w32u", (uint32_t)UINT_MAX); in ATF_TC_BODY()
151 SNPRINTF_TEST("0", "%w64d", (int64_t)0); in ATF_TC_BODY()
152 SNPRINTF_TEST("-9223372036854775808", "%w64d", (int64_t)LLONG_MIN); in ATF_TC_BODY()
153 SNPRINTF_TEST("9223372036854775807", "%w64d", (int64_t)LLONG_MAX); in ATF_TC_BODY()
154 SNPRINTF_TEST("0", "%w64u", (uint64_t)0); in ATF_TC_BODY()
155 SNPRINTF_TEST("18446744073709551615", "%w64u", (uint64_t)ULLONG_MAX); in ATF_TC_BODY()
157 SNPRINTF_TEST("wd", "%wd", 0); in ATF_TC_BODY()
158 SNPRINTF_TEST("w1d", "%w1d", 0); in ATF_TC_BODY()
159 SNPRINTF_TEST("w128d", "%w128d", 0); in ATF_TC_BODY()
165 SNPRINTF_TEST("0", "%wf8d", (int_fast8_t)0); in ATF_TC_BODY()
166 SNPRINTF_TEST("-2147483648", "%wf8d", (int_fast8_t)INT_MIN); in ATF_TC_BODY()
167 SNPRINTF_TEST("2147483647", "%wf8d", (int_fast8_t)INT_MAX); in ATF_TC_BODY()
168 SNPRINTF_TEST("0", "%wf8u", (uint8_t)0); in ATF_TC_BODY()
169 SNPRINTF_TEST("4294967295", "%wf8u", (uint_fast8_t)UINT_MAX); in ATF_TC_BODY()
171 SNPRINTF_TEST("0", "%wf16d", (int_fast16_t)0); in ATF_TC_BODY()
172 SNPRINTF_TEST("-2147483648", "%wf16d", (int_fast16_t)INT_MIN); in ATF_TC_BODY()
173 SNPRINTF_TEST("2147483647", "%wf16d", (int_fast16_t)INT_MAX); in ATF_TC_BODY()
174 SNPRINTF_TEST("0", "%wf16u", (uint16_t)0); in ATF_TC_BODY()
175 SNPRINTF_TEST("4294967295", "%wf16u", (uint_fast16_t)UINT_MAX); in ATF_TC_BODY()
177 SNPRINTF_TEST("0", "%wf32d", (int_fast32_t)0); in ATF_TC_BODY()
178 SNPRINTF_TEST("-2147483648", "%wf32d", (int_fast32_t)INT_MIN); in ATF_TC_BODY()
179 SNPRINTF_TEST("2147483647", "%wf32d", (int_fast32_t)INT_MAX); in ATF_TC_BODY()
180 SNPRINTF_TEST("0", "%wf32u", (uint32_t)0); in ATF_TC_BODY()
181 SNPRINTF_TEST("4294967295", "%wf32u", (uint_fast32_t)UINT_MAX); in ATF_TC_BODY()
183 SNPRINTF_TEST("0", "%wf64d", (int_fast64_t)0); in ATF_TC_BODY()
184 SNPRINTF_TEST("-9223372036854775808", "%wf64d", (int_fast64_t)LLONG_MIN); in ATF_TC_BODY()
185 SNPRINTF_TEST("9223372036854775807", "%wf64d", (int_fast64_t)LLONG_MAX); in ATF_TC_BODY()
186 SNPRINTF_TEST("0", "%wf64u", (uint64_t)0); in ATF_TC_BODY()
187 SNPRINTF_TEST("18446744073709551615", "%wf64u", (uint_fast64_t)ULLONG_MAX); in ATF_TC_BODY()
189 SNPRINTF_TEST("wfd", "%wfd", 0); in ATF_TC_BODY()
190 SNPRINTF_TEST("wf1d", "%wf1d", 0); in ATF_TC_BODY()
191 SNPRINTF_TEST("wf128d", "%wf128d", 0); in ATF_TC_BODY()