Lines Matching refs:ul_test
128 static struct unslong_st ul_test[ULONG_TESTS_ARRSZ]; variable
645 i = 1; ul_test[i].num = 0xFFFFUL; ul_test[i].expected = "65535"; in test_unsigned_long_formatting()
646 i++; ul_test[i].num = 0xFF00UL; ul_test[i].expected = "65280"; in test_unsigned_long_formatting()
647 i++; ul_test[i].num = 0x00FFUL; ul_test[i].expected = "255"; in test_unsigned_long_formatting()
649 i++; ul_test[i].num = 0xF000UL; ul_test[i].expected = "61440"; in test_unsigned_long_formatting()
650 i++; ul_test[i].num = 0x0F00UL; ul_test[i].expected = "3840"; in test_unsigned_long_formatting()
651 i++; ul_test[i].num = 0x00F0UL; ul_test[i].expected = "240"; in test_unsigned_long_formatting()
652 i++; ul_test[i].num = 0x000FUL; ul_test[i].expected = "15"; in test_unsigned_long_formatting()
654 i++; ul_test[i].num = 0xC000UL; ul_test[i].expected = "49152"; in test_unsigned_long_formatting()
655 i++; ul_test[i].num = 0x0C00UL; ul_test[i].expected = "3072"; in test_unsigned_long_formatting()
656 i++; ul_test[i].num = 0x00C0UL; ul_test[i].expected = "192"; in test_unsigned_long_formatting()
657 i++; ul_test[i].num = 0x000CUL; ul_test[i].expected = "12"; in test_unsigned_long_formatting()
659 i++; ul_test[i].num = 0x0001UL; ul_test[i].expected = "1"; in test_unsigned_long_formatting()
660 i++; ul_test[i].num = 0x0000UL; ul_test[i].expected = "0"; in test_unsigned_long_formatting()
666 i = 1; ul_test[i].num = 0xFFFFFFFFUL; ul_test[i].expected = "4294967295"; in test_unsigned_long_formatting()
667 i++; ul_test[i].num = 0xFFFF0000UL; ul_test[i].expected = "4294901760"; in test_unsigned_long_formatting()
668 i++; ul_test[i].num = 0x0000FFFFUL; ul_test[i].expected = "65535"; in test_unsigned_long_formatting()
670 i++; ul_test[i].num = 0xFF000000UL; ul_test[i].expected = "4278190080"; in test_unsigned_long_formatting()
671 i++; ul_test[i].num = 0x00FF0000UL; ul_test[i].expected = "16711680"; in test_unsigned_long_formatting()
672 i++; ul_test[i].num = 0x0000FF00UL; ul_test[i].expected = "65280"; in test_unsigned_long_formatting()
673 i++; ul_test[i].num = 0x000000FFUL; ul_test[i].expected = "255"; in test_unsigned_long_formatting()
675 i++; ul_test[i].num = 0xF0000000UL; ul_test[i].expected = "4026531840"; in test_unsigned_long_formatting()
676 i++; ul_test[i].num = 0x0F000000UL; ul_test[i].expected = "251658240"; in test_unsigned_long_formatting()
677 i++; ul_test[i].num = 0x00F00000UL; ul_test[i].expected = "15728640"; in test_unsigned_long_formatting()
678 i++; ul_test[i].num = 0x000F0000UL; ul_test[i].expected = "983040"; in test_unsigned_long_formatting()
679 i++; ul_test[i].num = 0x0000F000UL; ul_test[i].expected = "61440"; in test_unsigned_long_formatting()
680 i++; ul_test[i].num = 0x00000F00UL; ul_test[i].expected = "3840"; in test_unsigned_long_formatting()
681 i++; ul_test[i].num = 0x000000F0UL; ul_test[i].expected = "240"; in test_unsigned_long_formatting()
682 i++; ul_test[i].num = 0x0000000FUL; ul_test[i].expected = "15"; in test_unsigned_long_formatting()
684 i++; ul_test[i].num = 0xC0000000UL; ul_test[i].expected = "3221225472"; in test_unsigned_long_formatting()
685 i++; ul_test[i].num = 0x0C000000UL; ul_test[i].expected = "201326592"; in test_unsigned_long_formatting()
686 i++; ul_test[i].num = 0x00C00000UL; ul_test[i].expected = "12582912"; in test_unsigned_long_formatting()
687 i++; ul_test[i].num = 0x000C0000UL; ul_test[i].expected = "786432"; in test_unsigned_long_formatting()
688 i++; ul_test[i].num = 0x0000C000UL; ul_test[i].expected = "49152"; in test_unsigned_long_formatting()
689 i++; ul_test[i].num = 0x00000C00UL; ul_test[i].expected = "3072"; in test_unsigned_long_formatting()
690 i++; ul_test[i].num = 0x000000C0UL; ul_test[i].expected = "192"; in test_unsigned_long_formatting()
691 i++; ul_test[i].num = 0x0000000CUL; ul_test[i].expected = "12"; in test_unsigned_long_formatting()
693 i++; ul_test[i].num = 0x00000001UL; ul_test[i].expected = "1"; in test_unsigned_long_formatting()
694 i++; ul_test[i].num = 0x00000000UL; ul_test[i].expected = "0"; in test_unsigned_long_formatting()
700 i = 1; ul_test[i].num = 0xFFFFFFFFFFFFFFFFUL; ul_test[i].expected = "18446744073709551615"; in test_unsigned_long_formatting()
701 i++; ul_test[i].num = 0xFFFFFFFF00000000UL; ul_test[i].expected = "18446744069414584320"; in test_unsigned_long_formatting()
702 i++; ul_test[i].num = 0x00000000FFFFFFFFUL; ul_test[i].expected = "4294967295"; in test_unsigned_long_formatting()
704 i++; ul_test[i].num = 0xFFFF000000000000UL; ul_test[i].expected = "18446462598732840960"; in test_unsigned_long_formatting()
705 i++; ul_test[i].num = 0x0000FFFF00000000UL; ul_test[i].expected = "281470681743360"; in test_unsigned_long_formatting()
706 i++; ul_test[i].num = 0x00000000FFFF0000UL; ul_test[i].expected = "4294901760"; in test_unsigned_long_formatting()
707 i++; ul_test[i].num = 0x000000000000FFFFUL; ul_test[i].expected = "65535"; in test_unsigned_long_formatting()
709 i++; ul_test[i].num = 0xFF00000000000000UL; ul_test[i].expected = "18374686479671623680"; in test_unsigned_long_formatting()
710 i++; ul_test[i].num = 0x00FF000000000000UL; ul_test[i].expected = "71776119061217280"; in test_unsigned_long_formatting()
711 i++; ul_test[i].num = 0x0000FF0000000000UL; ul_test[i].expected = "280375465082880"; in test_unsigned_long_formatting()
712 i++; ul_test[i].num = 0x000000FF00000000UL; ul_test[i].expected = "1095216660480"; in test_unsigned_long_formatting()
713 i++; ul_test[i].num = 0x00000000FF000000UL; ul_test[i].expected = "4278190080"; in test_unsigned_long_formatting()
714 i++; ul_test[i].num = 0x0000000000FF0000UL; ul_test[i].expected = "16711680"; in test_unsigned_long_formatting()
715 i++; ul_test[i].num = 0x000000000000FF00UL; ul_test[i].expected = "65280"; in test_unsigned_long_formatting()
716 i++; ul_test[i].num = 0x00000000000000FFUL; ul_test[i].expected = "255"; in test_unsigned_long_formatting()
718 i++; ul_test[i].num = 0xF000000000000000UL; ul_test[i].expected = "17293822569102704640"; in test_unsigned_long_formatting()
719 i++; ul_test[i].num = 0x0F00000000000000UL; ul_test[i].expected = "1080863910568919040"; in test_unsigned_long_formatting()
720 i++; ul_test[i].num = 0x00F0000000000000UL; ul_test[i].expected = "67553994410557440"; in test_unsigned_long_formatting()
721 i++; ul_test[i].num = 0x000F000000000000UL; ul_test[i].expected = "4222124650659840"; in test_unsigned_long_formatting()
722 i++; ul_test[i].num = 0x0000F00000000000UL; ul_test[i].expected = "263882790666240"; in test_unsigned_long_formatting()
723 i++; ul_test[i].num = 0x00000F0000000000UL; ul_test[i].expected = "16492674416640"; in test_unsigned_long_formatting()
724 i++; ul_test[i].num = 0x000000F000000000UL; ul_test[i].expected = "1030792151040"; in test_unsigned_long_formatting()
725 i++; ul_test[i].num = 0x0000000F00000000UL; ul_test[i].expected = "64424509440"; in test_unsigned_long_formatting()
726 i++; ul_test[i].num = 0x00000000F0000000UL; ul_test[i].expected = "4026531840"; in test_unsigned_long_formatting()
727 i++; ul_test[i].num = 0x000000000F000000UL; ul_test[i].expected = "251658240"; in test_unsigned_long_formatting()
728 i++; ul_test[i].num = 0x0000000000F00000UL; ul_test[i].expected = "15728640"; in test_unsigned_long_formatting()
729 i++; ul_test[i].num = 0x00000000000F0000UL; ul_test[i].expected = "983040"; in test_unsigned_long_formatting()
730 i++; ul_test[i].num = 0x000000000000F000UL; ul_test[i].expected = "61440"; in test_unsigned_long_formatting()
731 i++; ul_test[i].num = 0x0000000000000F00UL; ul_test[i].expected = "3840"; in test_unsigned_long_formatting()
732 i++; ul_test[i].num = 0x00000000000000F0UL; ul_test[i].expected = "240"; in test_unsigned_long_formatting()
733 i++; ul_test[i].num = 0x000000000000000FUL; ul_test[i].expected = "15"; in test_unsigned_long_formatting()
735 i++; ul_test[i].num = 0xC000000000000000UL; ul_test[i].expected = "13835058055282163712"; in test_unsigned_long_formatting()
736 i++; ul_test[i].num = 0x0C00000000000000UL; ul_test[i].expected = "864691128455135232"; in test_unsigned_long_formatting()
737 i++; ul_test[i].num = 0x00C0000000000000UL; ul_test[i].expected = "54043195528445952"; in test_unsigned_long_formatting()
738 i++; ul_test[i].num = 0x000C000000000000UL; ul_test[i].expected = "3377699720527872"; in test_unsigned_long_formatting()
739 i++; ul_test[i].num = 0x0000C00000000000UL; ul_test[i].expected = "211106232532992"; in test_unsigned_long_formatting()
740 i++; ul_test[i].num = 0x00000C0000000000UL; ul_test[i].expected = "13194139533312"; in test_unsigned_long_formatting()
741 i++; ul_test[i].num = 0x000000C000000000UL; ul_test[i].expected = "824633720832"; in test_unsigned_long_formatting()
742 i++; ul_test[i].num = 0x0000000C00000000UL; ul_test[i].expected = "51539607552"; in test_unsigned_long_formatting()
743 i++; ul_test[i].num = 0x00000000C0000000UL; ul_test[i].expected = "3221225472"; in test_unsigned_long_formatting()
744 i++; ul_test[i].num = 0x000000000C000000UL; ul_test[i].expected = "201326592"; in test_unsigned_long_formatting()
745 i++; ul_test[i].num = 0x0000000000C00000UL; ul_test[i].expected = "12582912"; in test_unsigned_long_formatting()
746 i++; ul_test[i].num = 0x00000000000C0000UL; ul_test[i].expected = "786432"; in test_unsigned_long_formatting()
747 i++; ul_test[i].num = 0x000000000000C000UL; ul_test[i].expected = "49152"; in test_unsigned_long_formatting()
748 i++; ul_test[i].num = 0x0000000000000C00UL; ul_test[i].expected = "3072"; in test_unsigned_long_formatting()
749 i++; ul_test[i].num = 0x00000000000000C0UL; ul_test[i].expected = "192"; in test_unsigned_long_formatting()
750 i++; ul_test[i].num = 0x000000000000000CUL; ul_test[i].expected = "12"; in test_unsigned_long_formatting()
752 i++; ul_test[i].num = 0x00000001UL; ul_test[i].expected = "1"; in test_unsigned_long_formatting()
753 i++; ul_test[i].num = 0x00000000UL; ul_test[i].expected = "0"; in test_unsigned_long_formatting()
762 ul_test[i].result[j] = 'X'; in test_unsigned_long_formatting()
763 ul_test[i].result[BUFSZ-1] = '\0'; in test_unsigned_long_formatting()
765 (void)curl_msprintf(ul_test[i].result, "%lu", ul_test[i].num); in test_unsigned_long_formatting()
767 if(memcmp(ul_test[i].result, in test_unsigned_long_formatting()
768 ul_test[i].expected, in test_unsigned_long_formatting()
769 strlen(ul_test[i].expected))) { in test_unsigned_long_formatting()
771 i, ul_test[i].expected, ul_test[i].result); in test_unsigned_long_formatting()