Lines Matching refs:buf2

19     char buf2[100];  in testITOA()  local
24 len = modp_itoa10(i, buf2); in testITOA()
26 mu_assert_str_equals(buf1, buf2); in testITOA()
29 len = modp_itoa10(-i, buf2); in testITOA()
31 mu_assert_str_equals(buf1, buf2); in testITOA()
34 len = modp_itoa10(INT_MAX - i, buf2); in testITOA()
36 mu_assert_str_equals(buf1, buf2); in testITOA()
39 len = modp_itoa10(-(INT_MAX - i), buf2); in testITOA()
41 mu_assert_str_equals(buf1, buf2); in testITOA()
49 char buf2[100]; in testUITOA() local
54 len = modp_uitoa10(i, buf2); in testUITOA()
56 mu_assert_str_equals(buf1, buf2); in testUITOA()
61 len = modp_uitoa10(0xFFFFFFFFu - i, buf2); in testUITOA()
63 mu_assert_str_equals(buf1, buf2); in testUITOA()
71 char buf2[100]; in testLITOA() local
76 len = modp_litoa10(i, buf2); in testLITOA()
78 mu_assert_str_equals(buf1, buf2); in testLITOA()
81 len = modp_litoa10(-i, buf2); in testLITOA()
83 mu_assert_str_equals(buf1, buf2); in testLITOA()
86 len = modp_litoa10(LONG_MAX - i, buf2); in testLITOA()
88 mu_assert_str_equals(buf1, buf2); in testLITOA()
91 len = modp_litoa10(-(LONG_MAX - i), buf2); in testLITOA()
93 mu_assert_str_equals(buf1, buf2); in testLITOA()
101 char buf2[100]; in testULITOA() local
106 len = modp_ulitoa10(i, buf2); in testULITOA()
108 mu_assert_str_equals(buf1, buf2); in testULITOA()
113 len = modp_ulitoa10(0xFFFFFFFFFFFFFFFFull - i, buf2); in testULITOA()
115 mu_assert_str_equals(buf1, buf2); in testULITOA()
123 char buf2[100]; in testDoubleToA() local
166 len = modp_dtoa(d, buf2, (int)k); in testDoubleToA()
167 mu_assert_str_equals_msg(msg, buf1, buf2); in testDoubleToA()
176 len = modp_dtoa(d, buf2, (int)k); in testDoubleToA()
178 mu_assert_str_equals_msg(msg, buf1, buf2); in testDoubleToA()
181 tmp = buf2; in testDoubleToA()
192 wholes[i], frac[j], (int)k, (int)tmplen, buf2); in testDoubleToA()
201 len = modp_dtoa(d, buf2, 6); in testDoubleToA()
202 mu_assert_int_equals(len, strlen(buf2)); in testDoubleToA()
203 mu_assert_str_equals("1.000000e+200", buf2); in testDoubleToA()
207 len = modp_dtoa(d, buf2, 6); in testDoubleToA()
208 mu_assert_int_equals(len, strlen(buf2)); in testDoubleToA()
209 mu_assert_str_equals("-1.000000e+200", buf2); in testDoubleToA()
214 len = modp_dtoa(d, buf2, 6); in testDoubleToA()
216 mu_assert_str_equals(buf1, buf2); in testDoubleToA()
221 len = modp_dtoa(d, buf2, 6); in testDoubleToA()
223 mu_assert_str_equals(buf1, buf2); in testDoubleToA()
268 char buf2[100]; in testDoubleToA2() local
305 len = modp_dtoa2(d, buf2, k); in testDoubleToA2()
310 tmp = buf2; in testDoubleToA2()
322 mu_assert_str_equals_msg(msg, buf1, buf2); in testDoubleToA2()
330 len = modp_dtoa2(d, buf2, k); in testDoubleToA2()
331 mu_assert_int_equals(len, strlen(buf2)); in testDoubleToA2()
332 mu_assert_str_equals_msg(msg, buf1, buf2); in testDoubleToA2()
340 len = modp_dtoa2(d, buf2, 6); in testDoubleToA2()
341 mu_assert_int_equals(len, strlen(buf2)); in testDoubleToA2()
342 mu_assert_str_equals("1.000000e+200", buf2); in testDoubleToA2()
346 len = modp_dtoa2(d, buf2, 6); in testDoubleToA2()
347 mu_assert_int_equals(len, strlen(buf2)); in testDoubleToA2()
348 mu_assert_str_equals("-1.000000e+200", buf2); in testDoubleToA2()
355 len = modp_dtoa2(d, buf2, 6); in testDoubleToA2()
356 mu_assert_int_equals(len, strlen(buf2)); in testDoubleToA2()
357 mu_assert_str_equals(buf1, buf2); in testDoubleToA2()
364 len = modp_dtoa2(d, buf2, 6); in testDoubleToA2()
365 mu_assert_int_equals(len, strlen(buf2)); in testDoubleToA2()
366 mu_assert_str_equals(buf1, buf2); in testDoubleToA2()
370 len = modp_dtoa(d, buf2, -1); in testDoubleToA2()
371 mu_assert_int_equals(len, strlen(buf2)); in testDoubleToA2()
372 mu_assert_str_equals("1", buf2); in testDoubleToA2()
373 len = modp_dtoa2(d, buf2, 10); in testDoubleToA2()
374 mu_assert_int_equals(len, strlen(buf2)); in testDoubleToA2()
375 mu_assert_str_equals("1.1", buf2); in testDoubleToA2()
385 char buf2[100]; in testOverflowLITOA() local
389 modp_litoa10(longmin, buf2); in testOverflowLITOA()
390 mu_assert_str_equals(buf1, buf2); in testOverflowLITOA()
394 modp_litoa10(longmax, buf2); in testOverflowLITOA()
395 mu_assert_str_equals(buf1, buf2); in testOverflowLITOA()
403 char buf2[100]; in testOverflowITOA() local
407 modp_itoa10(intmin, buf2); in testOverflowITOA()
408 mu_assert_str_equals(buf1, buf2); in testOverflowITOA()
412 modp_itoa10(intmax, buf2); in testOverflowITOA()
413 mu_assert_str_equals(buf1, buf2); in testOverflowITOA()
421 char buf2[100]; in testDTOANonFinite() local
429 buf2[0] = '\0'; in testDTOANonFinite()
430 modp_dtoa2(d, buf2, 6); in testDTOANonFinite()
431 mu_assert_str_equals("inf", buf2); in testDTOANonFinite()
442 char buf2[100]; in testDTOAInfinity() local
449 buf2[0] = '\0'; in testDTOAInfinity()
450 modp_dtoa(d, buf2, 6); in testDTOAInfinity()
451 mu_assert_str_equals("inf", buf2); in testDTOAInfinity()
453 buf2[0] = '\0'; in testDTOAInfinity()
454 modp_dtoa2(d, buf2, 6); in testDTOAInfinity()
455 mu_assert_str_equals("inf", buf2); in testDTOAInfinity()
468 char buf2[100]; in testDTOAandNAN() local
478 buf2[0] = '\0'; in testDTOAandNAN()
479 modp_dtoa(d, buf2, 6); in testDTOAandNAN()
480 mu_assert_str_equals("nan", buf2); in testDTOAandNAN()
481 buf2[0] = '\0'; in testDTOAandNAN()
482 modp_dtoa2(d, buf2, 6); in testDTOAandNAN()
483 mu_assert_str_equals("nan", buf2); in testDTOAandNAN()
492 char buf2[100]; in testUITOA16() local
506 modp_uitoa16(i, buf2, 1); in testUITOA16()
507 mu_assert_str_equals(buf1, buf2); in testUITOA16()