Lines Matching refs:us_test
113 static struct unsshort_st us_test[USHORT_TESTS_ARRSZ]; variable
130 i = 1; us_test[i].num = 0xFFU; us_test[i].expected = "256"; in test_unsigned_short_formatting()
131 i++; us_test[i].num = 0xF0U; us_test[i].expected = "240"; in test_unsigned_short_formatting()
132 i++; us_test[i].num = 0x0FU; us_test[i].expected = "15"; in test_unsigned_short_formatting()
134 i++; us_test[i].num = 0xE0U; us_test[i].expected = "224"; in test_unsigned_short_formatting()
135 i++; us_test[i].num = 0x0EU; us_test[i].expected = "14"; in test_unsigned_short_formatting()
137 i++; us_test[i].num = 0xC0U; us_test[i].expected = "192"; in test_unsigned_short_formatting()
138 i++; us_test[i].num = 0x0CU; us_test[i].expected = "12"; in test_unsigned_short_formatting()
140 i++; us_test[i].num = 0x01U; us_test[i].expected = "1"; in test_unsigned_short_formatting()
141 i++; us_test[i].num = 0x00U; us_test[i].expected = "0"; in test_unsigned_short_formatting()
147 i = 1; us_test[i].num = 0xFFFFU; us_test[i].expected = "65535"; in test_unsigned_short_formatting()
148 i++; us_test[i].num = 0xFF00U; us_test[i].expected = "65280"; in test_unsigned_short_formatting()
149 i++; us_test[i].num = 0x00FFU; us_test[i].expected = "255"; in test_unsigned_short_formatting()
151 i++; us_test[i].num = 0xF000U; us_test[i].expected = "61440"; in test_unsigned_short_formatting()
152 i++; us_test[i].num = 0x0F00U; us_test[i].expected = "3840"; in test_unsigned_short_formatting()
153 i++; us_test[i].num = 0x00F0U; us_test[i].expected = "240"; in test_unsigned_short_formatting()
154 i++; us_test[i].num = 0x000FU; us_test[i].expected = "15"; in test_unsigned_short_formatting()
156 i++; us_test[i].num = 0xC000U; us_test[i].expected = "49152"; in test_unsigned_short_formatting()
157 i++; us_test[i].num = 0x0C00U; us_test[i].expected = "3072"; in test_unsigned_short_formatting()
158 i++; us_test[i].num = 0x00C0U; us_test[i].expected = "192"; in test_unsigned_short_formatting()
159 i++; us_test[i].num = 0x000CU; us_test[i].expected = "12"; in test_unsigned_short_formatting()
161 i++; us_test[i].num = 0x0001U; us_test[i].expected = "1"; in test_unsigned_short_formatting()
162 i++; us_test[i].num = 0x0000U; us_test[i].expected = "0"; in test_unsigned_short_formatting()
168 i = 1; us_test[i].num = 0xFFFFFFFFU; us_test[i].expected = "4294967295"; in test_unsigned_short_formatting()
169 i++; us_test[i].num = 0xFFFF0000U; us_test[i].expected = "4294901760"; in test_unsigned_short_formatting()
170 i++; us_test[i].num = 0x0000FFFFU; us_test[i].expected = "65535"; in test_unsigned_short_formatting()
172 i++; us_test[i].num = 0xFF000000U; us_test[i].expected = "4278190080"; in test_unsigned_short_formatting()
173 i++; us_test[i].num = 0x00FF0000U; us_test[i].expected = "16711680"; in test_unsigned_short_formatting()
174 i++; us_test[i].num = 0x0000FF00U; us_test[i].expected = "65280"; in test_unsigned_short_formatting()
175 i++; us_test[i].num = 0x000000FFU; us_test[i].expected = "255"; in test_unsigned_short_formatting()
177 i++; us_test[i].num = 0xF0000000U; us_test[i].expected = "4026531840"; in test_unsigned_short_formatting()
178 i++; us_test[i].num = 0x0F000000U; us_test[i].expected = "251658240"; in test_unsigned_short_formatting()
179 i++; us_test[i].num = 0x00F00000U; us_test[i].expected = "15728640"; in test_unsigned_short_formatting()
180 i++; us_test[i].num = 0x000F0000U; us_test[i].expected = "983040"; in test_unsigned_short_formatting()
181 i++; us_test[i].num = 0x0000F000U; us_test[i].expected = "61440"; in test_unsigned_short_formatting()
182 i++; us_test[i].num = 0x00000F00U; us_test[i].expected = "3840"; in test_unsigned_short_formatting()
183 i++; us_test[i].num = 0x000000F0U; us_test[i].expected = "240"; in test_unsigned_short_formatting()
184 i++; us_test[i].num = 0x0000000FU; us_test[i].expected = "15"; in test_unsigned_short_formatting()
186 i++; us_test[i].num = 0xC0000000U; us_test[i].expected = "3221225472"; in test_unsigned_short_formatting()
187 i++; us_test[i].num = 0x0C000000U; us_test[i].expected = "201326592"; in test_unsigned_short_formatting()
188 i++; us_test[i].num = 0x00C00000U; us_test[i].expected = "12582912"; in test_unsigned_short_formatting()
189 i++; us_test[i].num = 0x000C0000U; us_test[i].expected = "786432"; in test_unsigned_short_formatting()
190 i++; us_test[i].num = 0x0000C000U; us_test[i].expected = "49152"; in test_unsigned_short_formatting()
191 i++; us_test[i].num = 0x00000C00U; us_test[i].expected = "3072"; in test_unsigned_short_formatting()
192 i++; us_test[i].num = 0x000000C0U; us_test[i].expected = "192"; in test_unsigned_short_formatting()
193 i++; us_test[i].num = 0x0000000CU; us_test[i].expected = "12"; in test_unsigned_short_formatting()
195 i++; us_test[i].num = 0x00000001U; us_test[i].expected = "1"; in test_unsigned_short_formatting()
196 i++; us_test[i].num = 0x00000000U; us_test[i].expected = "0"; in test_unsigned_short_formatting()
205 us_test[i].result[j] = 'X'; in test_unsigned_short_formatting()
206 us_test[i].result[BUFSZ-1] = '\0'; in test_unsigned_short_formatting()
208 (void)curl_msprintf(us_test[i].result, "%hu", us_test[i].num); in test_unsigned_short_formatting()
210 if(memcmp(us_test[i].result, in test_unsigned_short_formatting()
211 us_test[i].expected, in test_unsigned_short_formatting()
212 strlen(us_test[i].expected))) { in test_unsigned_short_formatting()
214 i, us_test[i].expected, us_test[i].result); in test_unsigned_short_formatting()