Lines Matching refs:us_test
124 static struct unsshort_st us_test[USHORT_TESTS_ARRSZ]; variable
139 i = 1; us_test[i].num = 0xFFFFU; us_test[i].expected = "65535"; in test_unsigned_short_formatting()
140 i++; us_test[i].num = 0xFF00U; us_test[i].expected = "65280"; in test_unsigned_short_formatting()
141 i++; us_test[i].num = 0x00FFU; us_test[i].expected = "255"; in test_unsigned_short_formatting()
143 i++; us_test[i].num = 0xF000U; us_test[i].expected = "61440"; in test_unsigned_short_formatting()
144 i++; us_test[i].num = 0x0F00U; us_test[i].expected = "3840"; in test_unsigned_short_formatting()
145 i++; us_test[i].num = 0x00F0U; us_test[i].expected = "240"; in test_unsigned_short_formatting()
146 i++; us_test[i].num = 0x000FU; us_test[i].expected = "15"; in test_unsigned_short_formatting()
148 i++; us_test[i].num = 0xC000U; us_test[i].expected = "49152"; in test_unsigned_short_formatting()
149 i++; us_test[i].num = 0x0C00U; us_test[i].expected = "3072"; in test_unsigned_short_formatting()
150 i++; us_test[i].num = 0x00C0U; us_test[i].expected = "192"; in test_unsigned_short_formatting()
151 i++; us_test[i].num = 0x000CU; us_test[i].expected = "12"; in test_unsigned_short_formatting()
153 i++; us_test[i].num = 0x0001U; us_test[i].expected = "1"; in test_unsigned_short_formatting()
154 i++; us_test[i].num = 0x0000U; us_test[i].expected = "0"; in test_unsigned_short_formatting()
161 us_test[i].result[j] = 'X'; in test_unsigned_short_formatting()
162 us_test[i].result[BUFSZ-1] = '\0'; in test_unsigned_short_formatting()
164 (void)curl_msprintf(us_test[i].result, "%hu", us_test[i].num); in test_unsigned_short_formatting()
166 if(memcmp(us_test[i].result, in test_unsigned_short_formatting()
167 us_test[i].expected, in test_unsigned_short_formatting()
168 strlen(us_test[i].expected))) { in test_unsigned_short_formatting()
170 i, us_test[i].expected, us_test[i].result); in test_unsigned_short_formatting()