Lines Matching refs:si_test
127 static struct sigint_st si_test[SINT_TESTS_ARRSZ]; variable
417 i = 1; si_test[i].num = 0x7FFF; si_test[i].expected = "32767"; in test_signed_int_formatting()
418 i++; si_test[i].num = 0x7FFE; si_test[i].expected = "32766"; in test_signed_int_formatting()
419 i++; si_test[i].num = 0x7FFD; si_test[i].expected = "32765"; in test_signed_int_formatting()
420 i++; si_test[i].num = 0x7F00; si_test[i].expected = "32512"; in test_signed_int_formatting()
421 i++; si_test[i].num = 0x07F0; si_test[i].expected = "2032"; in test_signed_int_formatting()
422 i++; si_test[i].num = 0x007F; si_test[i].expected = "127"; in test_signed_int_formatting()
424 i++; si_test[i].num = 0x7000; si_test[i].expected = "28672"; in test_signed_int_formatting()
425 i++; si_test[i].num = 0x0700; si_test[i].expected = "1792"; in test_signed_int_formatting()
426 i++; si_test[i].num = 0x0070; si_test[i].expected = "112"; in test_signed_int_formatting()
427 i++; si_test[i].num = 0x0007; si_test[i].expected = "7"; in test_signed_int_formatting()
429 i++; si_test[i].num = 0x5000; si_test[i].expected = "20480"; in test_signed_int_formatting()
430 i++; si_test[i].num = 0x0500; si_test[i].expected = "1280"; in test_signed_int_formatting()
431 i++; si_test[i].num = 0x0050; si_test[i].expected = "80"; in test_signed_int_formatting()
432 i++; si_test[i].num = 0x0005; si_test[i].expected = "5"; in test_signed_int_formatting()
434 i++; si_test[i].num = 0x0001; si_test[i].expected = "1"; in test_signed_int_formatting()
435 i++; si_test[i].num = 0x0000; si_test[i].expected = "0"; in test_signed_int_formatting()
437 i++; si_test[i].num = -0x7FFF -1; si_test[i].expected = "-32768"; in test_signed_int_formatting()
438 i++; si_test[i].num = -0x7FFE -1; si_test[i].expected = "-32767"; in test_signed_int_formatting()
439 i++; si_test[i].num = -0x7FFD -1; si_test[i].expected = "-32766"; in test_signed_int_formatting()
440 i++; si_test[i].num = -0x7F00 -1; si_test[i].expected = "-32513"; in test_signed_int_formatting()
441 i++; si_test[i].num = -0x07F0 -1; si_test[i].expected = "-2033"; in test_signed_int_formatting()
442 i++; si_test[i].num = -0x007F -1; si_test[i].expected = "-128"; in test_signed_int_formatting()
444 i++; si_test[i].num = -0x7000 -1; si_test[i].expected = "-28673"; in test_signed_int_formatting()
445 i++; si_test[i].num = -0x0700 -1; si_test[i].expected = "-1793"; in test_signed_int_formatting()
446 i++; si_test[i].num = -0x0070 -1; si_test[i].expected = "-113"; in test_signed_int_formatting()
447 i++; si_test[i].num = -0x0007 -1; si_test[i].expected = "-8"; in test_signed_int_formatting()
449 i++; si_test[i].num = -0x5000 -1; si_test[i].expected = "-20481"; in test_signed_int_formatting()
450 i++; si_test[i].num = -0x0500 -1; si_test[i].expected = "-1281"; in test_signed_int_formatting()
451 i++; si_test[i].num = -0x0050 -1; si_test[i].expected = "-81"; in test_signed_int_formatting()
452 i++; si_test[i].num = -0x0005 -1; si_test[i].expected = "-6"; in test_signed_int_formatting()
454 i++; si_test[i].num = 0x0000 -1; si_test[i].expected = "-1"; in test_signed_int_formatting()
460 i = 1; si_test[i].num = 0x7FFFFFFF; si_test[i].expected = "2147483647"; in test_signed_int_formatting()
461 i++; si_test[i].num = 0x7FFFFFFE; si_test[i].expected = "2147483646"; in test_signed_int_formatting()
462 i++; si_test[i].num = 0x7FFFFFFD; si_test[i].expected = "2147483645"; in test_signed_int_formatting()
463 i++; si_test[i].num = 0x7FFF0000; si_test[i].expected = "2147418112"; in test_signed_int_formatting()
464 i++; si_test[i].num = 0x00007FFF; si_test[i].expected = "32767"; in test_signed_int_formatting()
466 i++; si_test[i].num = 0x7F000000; si_test[i].expected = "2130706432"; in test_signed_int_formatting()
467 i++; si_test[i].num = 0x007F0000; si_test[i].expected = "8323072"; in test_signed_int_formatting()
468 i++; si_test[i].num = 0x00007F00; si_test[i].expected = "32512"; in test_signed_int_formatting()
469 i++; si_test[i].num = 0x0000007F; si_test[i].expected = "127"; in test_signed_int_formatting()
471 i++; si_test[i].num = 0x70000000; si_test[i].expected = "1879048192"; in test_signed_int_formatting()
472 i++; si_test[i].num = 0x07000000; si_test[i].expected = "117440512"; in test_signed_int_formatting()
473 i++; si_test[i].num = 0x00700000; si_test[i].expected = "7340032"; in test_signed_int_formatting()
474 i++; si_test[i].num = 0x00070000; si_test[i].expected = "458752"; in test_signed_int_formatting()
475 i++; si_test[i].num = 0x00007000; si_test[i].expected = "28672"; in test_signed_int_formatting()
476 i++; si_test[i].num = 0x00000700; si_test[i].expected = "1792"; in test_signed_int_formatting()
477 i++; si_test[i].num = 0x00000070; si_test[i].expected = "112"; in test_signed_int_formatting()
478 i++; si_test[i].num = 0x00000007; si_test[i].expected = "7"; in test_signed_int_formatting()
480 i++; si_test[i].num = 0x50000000; si_test[i].expected = "1342177280"; in test_signed_int_formatting()
481 i++; si_test[i].num = 0x05000000; si_test[i].expected = "83886080"; in test_signed_int_formatting()
482 i++; si_test[i].num = 0x00500000; si_test[i].expected = "5242880"; in test_signed_int_formatting()
483 i++; si_test[i].num = 0x00050000; si_test[i].expected = "327680"; in test_signed_int_formatting()
484 i++; si_test[i].num = 0x00005000; si_test[i].expected = "20480"; in test_signed_int_formatting()
485 i++; si_test[i].num = 0x00000500; si_test[i].expected = "1280"; in test_signed_int_formatting()
486 i++; si_test[i].num = 0x00000050; si_test[i].expected = "80"; in test_signed_int_formatting()
487 i++; si_test[i].num = 0x00000005; si_test[i].expected = "5"; in test_signed_int_formatting()
489 i++; si_test[i].num = 0x00000001; si_test[i].expected = "1"; in test_signed_int_formatting()
490 i++; si_test[i].num = 0x00000000; si_test[i].expected = "0"; in test_signed_int_formatting()
492 i++; si_test[i].num = -0x7FFFFFFF -1; si_test[i].expected = "-2147483648"; in test_signed_int_formatting()
493 i++; si_test[i].num = -0x7FFFFFFE -1; si_test[i].expected = "-2147483647"; in test_signed_int_formatting()
494 i++; si_test[i].num = -0x7FFFFFFD -1; si_test[i].expected = "-2147483646"; in test_signed_int_formatting()
495 i++; si_test[i].num = -0x7FFF0000 -1; si_test[i].expected = "-2147418113"; in test_signed_int_formatting()
496 i++; si_test[i].num = -0x00007FFF -1; si_test[i].expected = "-32768"; in test_signed_int_formatting()
498 i++; si_test[i].num = -0x7F000000 -1; si_test[i].expected = "-2130706433"; in test_signed_int_formatting()
499 i++; si_test[i].num = -0x007F0000 -1; si_test[i].expected = "-8323073"; in test_signed_int_formatting()
500 i++; si_test[i].num = -0x00007F00 -1; si_test[i].expected = "-32513"; in test_signed_int_formatting()
501 i++; si_test[i].num = -0x0000007F -1; si_test[i].expected = "-128"; in test_signed_int_formatting()
503 i++; si_test[i].num = -0x70000000 -1; si_test[i].expected = "-1879048193"; in test_signed_int_formatting()
504 i++; si_test[i].num = -0x07000000 -1; si_test[i].expected = "-117440513"; in test_signed_int_formatting()
505 i++; si_test[i].num = -0x00700000 -1; si_test[i].expected = "-7340033"; in test_signed_int_formatting()
506 i++; si_test[i].num = -0x00070000 -1; si_test[i].expected = "-458753"; in test_signed_int_formatting()
507 i++; si_test[i].num = -0x00007000 -1; si_test[i].expected = "-28673"; in test_signed_int_formatting()
508 i++; si_test[i].num = -0x00000700 -1; si_test[i].expected = "-1793"; in test_signed_int_formatting()
509 i++; si_test[i].num = -0x00000070 -1; si_test[i].expected = "-113"; in test_signed_int_formatting()
510 i++; si_test[i].num = -0x00000007 -1; si_test[i].expected = "-8"; in test_signed_int_formatting()
512 i++; si_test[i].num = -0x50000000 -1; si_test[i].expected = "-1342177281"; in test_signed_int_formatting()
513 i++; si_test[i].num = -0x05000000 -1; si_test[i].expected = "-83886081"; in test_signed_int_formatting()
514 i++; si_test[i].num = -0x00500000 -1; si_test[i].expected = "-5242881"; in test_signed_int_formatting()
515 i++; si_test[i].num = -0x00050000 -1; si_test[i].expected = "-327681"; in test_signed_int_formatting()
516 i++; si_test[i].num = -0x00005000 -1; si_test[i].expected = "-20481"; in test_signed_int_formatting()
517 i++; si_test[i].num = -0x00000500 -1; si_test[i].expected = "-1281"; in test_signed_int_formatting()
518 i++; si_test[i].num = -0x00000050 -1; si_test[i].expected = "-81"; in test_signed_int_formatting()
519 i++; si_test[i].num = -0x00000005 -1; si_test[i].expected = "-6"; in test_signed_int_formatting()
521 i++; si_test[i].num = 0x00000000 -1; si_test[i].expected = "-1"; in test_signed_int_formatting()
527 i = 1; si_test[i].num = 0x7FFFFFFFFFFFFFFF; si_test[i].expected = "9223372036854775807"; in test_signed_int_formatting()
528 i++; si_test[i].num = 0x7FFFFFFFFFFFFFFE; si_test[i].expected = "9223372036854775806"; in test_signed_int_formatting()
529 i++; si_test[i].num = 0x7FFFFFFFFFFFFFFD; si_test[i].expected = "9223372036854775805"; in test_signed_int_formatting()
530 i++; si_test[i].num = 0x7FFFFFFF00000000; si_test[i].expected = "9223372032559808512"; in test_signed_int_formatting()
531 i++; si_test[i].num = 0x000000007FFFFFFF; si_test[i].expected = "2147483647"; in test_signed_int_formatting()
533 i++; si_test[i].num = 0x7FFF000000000000; si_test[i].expected = "9223090561878065152"; in test_signed_int_formatting()
534 i++; si_test[i].num = 0x00007FFF00000000; si_test[i].expected = "140733193388032"; in test_signed_int_formatting()
535 i++; si_test[i].num = 0x000000007FFF0000; si_test[i].expected = "2147418112"; in test_signed_int_formatting()
536 i++; si_test[i].num = 0x0000000000007FFF; si_test[i].expected = "32767"; in test_signed_int_formatting()
538 i++; si_test[i].num = 0x7F00000000000000; si_test[i].expected = "9151314442816847872"; in test_signed_int_formatting()
539 i++; si_test[i].num = 0x007F000000000000; si_test[i].expected = "35747322042253312"; in test_signed_int_formatting()
540 i++; si_test[i].num = 0x00007F0000000000; si_test[i].expected = "139637976727552"; in test_signed_int_formatting()
541 i++; si_test[i].num = 0x0000007F00000000; si_test[i].expected = "545460846592"; in test_signed_int_formatting()
542 i++; si_test[i].num = 0x000000007F000000; si_test[i].expected = "2130706432"; in test_signed_int_formatting()
543 i++; si_test[i].num = 0x00000000007F0000; si_test[i].expected = "8323072"; in test_signed_int_formatting()
544 i++; si_test[i].num = 0x0000000000007F00; si_test[i].expected = "32512"; in test_signed_int_formatting()
545 i++; si_test[i].num = 0x000000000000007F; si_test[i].expected = "127"; in test_signed_int_formatting()
547 i++; si_test[i].num = 0x7000000000000000; si_test[i].expected = "8070450532247928832"; in test_signed_int_formatting()
548 i++; si_test[i].num = 0x0700000000000000; si_test[i].expected = "504403158265495552"; in test_signed_int_formatting()
549 i++; si_test[i].num = 0x0070000000000000; si_test[i].expected = "31525197391593472"; in test_signed_int_formatting()
550 i++; si_test[i].num = 0x0007000000000000; si_test[i].expected = "1970324836974592"; in test_signed_int_formatting()
551 i++; si_test[i].num = 0x0000700000000000; si_test[i].expected = "123145302310912"; in test_signed_int_formatting()
552 i++; si_test[i].num = 0x0000070000000000; si_test[i].expected = "7696581394432"; in test_signed_int_formatting()
553 i++; si_test[i].num = 0x0000007000000000; si_test[i].expected = "481036337152"; in test_signed_int_formatting()
554 i++; si_test[i].num = 0x0000000700000000; si_test[i].expected = "30064771072"; in test_signed_int_formatting()
555 i++; si_test[i].num = 0x0000000070000000; si_test[i].expected = "1879048192"; in test_signed_int_formatting()
556 i++; si_test[i].num = 0x0000000007000000; si_test[i].expected = "117440512"; in test_signed_int_formatting()
557 i++; si_test[i].num = 0x0000000000700000; si_test[i].expected = "7340032"; in test_signed_int_formatting()
558 i++; si_test[i].num = 0x0000000000070000; si_test[i].expected = "458752"; in test_signed_int_formatting()
559 i++; si_test[i].num = 0x0000000000007000; si_test[i].expected = "28672"; in test_signed_int_formatting()
560 i++; si_test[i].num = 0x0000000000000700; si_test[i].expected = "1792"; in test_signed_int_formatting()
561 i++; si_test[i].num = 0x0000000000000070; si_test[i].expected = "112"; in test_signed_int_formatting()
562 i++; si_test[i].num = 0x0000000000000007; si_test[i].expected = "7"; in test_signed_int_formatting()
564 i++; si_test[i].num = 0x0000000000000001; si_test[i].expected = "1"; in test_signed_int_formatting()
565 i++; si_test[i].num = 0x0000000000000000; si_test[i].expected = "0"; in test_signed_int_formatting()
567 i++; si_test[i].num = -0x7FFFFFFFFFFFFFFF -1; si_test[i].expected = "-9223372036854775808"; in test_signed_int_formatting()
568 i++; si_test[i].num = -0x7FFFFFFFFFFFFFFE -1; si_test[i].expected = "-9223372036854775807"; in test_signed_int_formatting()
569 i++; si_test[i].num = -0x7FFFFFFFFFFFFFFD -1; si_test[i].expected = "-9223372036854775806"; in test_signed_int_formatting()
570 i++; si_test[i].num = -0x7FFFFFFF00000000 -1; si_test[i].expected = "-9223372032559808513"; in test_signed_int_formatting()
571 i++; si_test[i].num = -0x000000007FFFFFFF -1; si_test[i].expected = "-2147483648"; in test_signed_int_formatting()
573 i++; si_test[i].num = -0x7FFF000000000000 -1; si_test[i].expected = "-9223090561878065153"; in test_signed_int_formatting()
574 i++; si_test[i].num = -0x00007FFF00000000 -1; si_test[i].expected = "-140733193388033"; in test_signed_int_formatting()
575 i++; si_test[i].num = -0x000000007FFF0000 -1; si_test[i].expected = "-2147418113"; in test_signed_int_formatting()
576 i++; si_test[i].num = -0x0000000000007FFF -1; si_test[i].expected = "-32768"; in test_signed_int_formatting()
578 i++; si_test[i].num = -0x7F00000000000000 -1; si_test[i].expected = "-9151314442816847873"; in test_signed_int_formatting()
579 i++; si_test[i].num = -0x007F000000000000 -1; si_test[i].expected = "-35747322042253313"; in test_signed_int_formatting()
580 i++; si_test[i].num = -0x00007F0000000000 -1; si_test[i].expected = "-139637976727553"; in test_signed_int_formatting()
581 i++; si_test[i].num = -0x0000007F00000000 -1; si_test[i].expected = "-545460846593"; in test_signed_int_formatting()
582 i++; si_test[i].num = -0x000000007F000000 -1; si_test[i].expected = "-2130706433"; in test_signed_int_formatting()
583 i++; si_test[i].num = -0x00000000007F0000 -1; si_test[i].expected = "-8323073"; in test_signed_int_formatting()
584 i++; si_test[i].num = -0x0000000000007F00 -1; si_test[i].expected = "-32513"; in test_signed_int_formatting()
585 i++; si_test[i].num = -0x000000000000007F -1; si_test[i].expected = "-128"; in test_signed_int_formatting()
587 i++; si_test[i].num = -0x7000000000000000 -1; si_test[i].expected = "-8070450532247928833"; in test_signed_int_formatting()
588 i++; si_test[i].num = -0x0700000000000000 -1; si_test[i].expected = "-504403158265495553"; in test_signed_int_formatting()
589 i++; si_test[i].num = -0x0070000000000000 -1; si_test[i].expected = "-31525197391593473"; in test_signed_int_formatting()
590 i++; si_test[i].num = -0x0007000000000000 -1; si_test[i].expected = "-1970324836974593"; in test_signed_int_formatting()
591 i++; si_test[i].num = -0x0000700000000000 -1; si_test[i].expected = "-123145302310913"; in test_signed_int_formatting()
592 i++; si_test[i].num = -0x0000070000000000 -1; si_test[i].expected = "-7696581394433"; in test_signed_int_formatting()
593 i++; si_test[i].num = -0x0000007000000000 -1; si_test[i].expected = "-481036337153"; in test_signed_int_formatting()
594 i++; si_test[i].num = -0x0000000700000000 -1; si_test[i].expected = "-30064771073"; in test_signed_int_formatting()
595 i++; si_test[i].num = -0x0000000070000000 -1; si_test[i].expected = "-1879048193"; in test_signed_int_formatting()
596 i++; si_test[i].num = -0x0000000007000000 -1; si_test[i].expected = "-117440513"; in test_signed_int_formatting()
597 i++; si_test[i].num = -0x0000000000700000 -1; si_test[i].expected = "-7340033"; in test_signed_int_formatting()
598 i++; si_test[i].num = -0x0000000000070000 -1; si_test[i].expected = "-458753"; in test_signed_int_formatting()
599 i++; si_test[i].num = -0x0000000000007000 -1; si_test[i].expected = "-28673"; in test_signed_int_formatting()
600 i++; si_test[i].num = -0x0000000000000700 -1; si_test[i].expected = "-1793"; in test_signed_int_formatting()
601 i++; si_test[i].num = -0x0000000000000070 -1; si_test[i].expected = "-113"; in test_signed_int_formatting()
602 i++; si_test[i].num = -0x0000000000000007 -1; si_test[i].expected = "-8"; in test_signed_int_formatting()
604 i++; si_test[i].num = 0x0000000000000000 -1; si_test[i].expected = "-1"; in test_signed_int_formatting()
613 si_test[i].result[j] = 'X'; in test_signed_int_formatting()
614 si_test[i].result[BUFSZ-1] = '\0'; in test_signed_int_formatting()
616 (void)curl_msprintf(si_test[i].result, "%d", si_test[i].num); in test_signed_int_formatting()
618 if(memcmp(si_test[i].result, in test_signed_int_formatting()
619 si_test[i].expected, in test_signed_int_formatting()
620 strlen(si_test[i].expected))) { in test_signed_int_formatting()
622 i, si_test[i].expected, si_test[i].result); in test_signed_int_formatting()