Lines Matching refs:sl_test
129 static struct siglong_st sl_test[SLONG_TESTS_ARRSZ]; variable
794 i = 1; sl_test[i].num = 0x7FFFL; sl_test[i].expected = "32767"; in test_signed_long_formatting()
795 i++; sl_test[i].num = 0x7FFEL; sl_test[i].expected = "32766"; in test_signed_long_formatting()
796 i++; sl_test[i].num = 0x7FFDL; sl_test[i].expected = "32765"; in test_signed_long_formatting()
797 i++; sl_test[i].num = 0x7F00L; sl_test[i].expected = "32512"; in test_signed_long_formatting()
798 i++; sl_test[i].num = 0x07F0L; sl_test[i].expected = "2032"; in test_signed_long_formatting()
799 i++; sl_test[i].num = 0x007FL; sl_test[i].expected = "127"; in test_signed_long_formatting()
801 i++; sl_test[i].num = 0x7000L; sl_test[i].expected = "28672"; in test_signed_long_formatting()
802 i++; sl_test[i].num = 0x0700L; sl_test[i].expected = "1792"; in test_signed_long_formatting()
803 i++; sl_test[i].num = 0x0070L; sl_test[i].expected = "112"; in test_signed_long_formatting()
804 i++; sl_test[i].num = 0x0007L; sl_test[i].expected = "7"; in test_signed_long_formatting()
806 i++; sl_test[i].num = 0x5000L; sl_test[i].expected = "20480"; in test_signed_long_formatting()
807 i++; sl_test[i].num = 0x0500L; sl_test[i].expected = "1280"; in test_signed_long_formatting()
808 i++; sl_test[i].num = 0x0050L; sl_test[i].expected = "80"; in test_signed_long_formatting()
809 i++; sl_test[i].num = 0x0005L; sl_test[i].expected = "5"; in test_signed_long_formatting()
811 i++; sl_test[i].num = 0x0001L; sl_test[i].expected = "1"; in test_signed_long_formatting()
812 i++; sl_test[i].num = 0x0000L; sl_test[i].expected = "0"; in test_signed_long_formatting()
814 i++; sl_test[i].num = -0x7FFFL -1L; sl_test[i].expected = "-32768"; in test_signed_long_formatting()
815 i++; sl_test[i].num = -0x7FFEL -1L; sl_test[i].expected = "-32767"; in test_signed_long_formatting()
816 i++; sl_test[i].num = -0x7FFDL -1L; sl_test[i].expected = "-32766"; in test_signed_long_formatting()
817 i++; sl_test[i].num = -0x7F00L -1L; sl_test[i].expected = "-32513"; in test_signed_long_formatting()
818 i++; sl_test[i].num = -0x07F0L -1L; sl_test[i].expected = "-2033"; in test_signed_long_formatting()
819 i++; sl_test[i].num = -0x007FL -1L; sl_test[i].expected = "-128"; in test_signed_long_formatting()
821 i++; sl_test[i].num = -0x7000L -1L; sl_test[i].expected = "-28673"; in test_signed_long_formatting()
822 i++; sl_test[i].num = -0x0700L -1L; sl_test[i].expected = "-1793"; in test_signed_long_formatting()
823 i++; sl_test[i].num = -0x0070L -1L; sl_test[i].expected = "-113"; in test_signed_long_formatting()
824 i++; sl_test[i].num = -0x0007L -1L; sl_test[i].expected = "-8"; in test_signed_long_formatting()
826 i++; sl_test[i].num = -0x5000L -1L; sl_test[i].expected = "-20481"; in test_signed_long_formatting()
827 i++; sl_test[i].num = -0x0500L -1L; sl_test[i].expected = "-1281"; in test_signed_long_formatting()
828 i++; sl_test[i].num = -0x0050L -1L; sl_test[i].expected = "-81"; in test_signed_long_formatting()
829 i++; sl_test[i].num = -0x0005L -1L; sl_test[i].expected = "-6"; in test_signed_long_formatting()
831 i++; sl_test[i].num = 0x0000L -1L; sl_test[i].expected = "-1"; in test_signed_long_formatting()
837 i = 1; sl_test[i].num = 0x7FFFFFFFL; sl_test[i].expected = "2147483647"; in test_signed_long_formatting()
838 i++; sl_test[i].num = 0x7FFFFFFEL; sl_test[i].expected = "2147483646"; in test_signed_long_formatting()
839 i++; sl_test[i].num = 0x7FFFFFFDL; sl_test[i].expected = "2147483645"; in test_signed_long_formatting()
840 i++; sl_test[i].num = 0x7FFF0000L; sl_test[i].expected = "2147418112"; in test_signed_long_formatting()
841 i++; sl_test[i].num = 0x00007FFFL; sl_test[i].expected = "32767"; in test_signed_long_formatting()
843 i++; sl_test[i].num = 0x7F000000L; sl_test[i].expected = "2130706432"; in test_signed_long_formatting()
844 i++; sl_test[i].num = 0x007F0000L; sl_test[i].expected = "8323072"; in test_signed_long_formatting()
845 i++; sl_test[i].num = 0x00007F00L; sl_test[i].expected = "32512"; in test_signed_long_formatting()
846 i++; sl_test[i].num = 0x0000007FL; sl_test[i].expected = "127"; in test_signed_long_formatting()
848 i++; sl_test[i].num = 0x70000000L; sl_test[i].expected = "1879048192"; in test_signed_long_formatting()
849 i++; sl_test[i].num = 0x07000000L; sl_test[i].expected = "117440512"; in test_signed_long_formatting()
850 i++; sl_test[i].num = 0x00700000L; sl_test[i].expected = "7340032"; in test_signed_long_formatting()
851 i++; sl_test[i].num = 0x00070000L; sl_test[i].expected = "458752"; in test_signed_long_formatting()
852 i++; sl_test[i].num = 0x00007000L; sl_test[i].expected = "28672"; in test_signed_long_formatting()
853 i++; sl_test[i].num = 0x00000700L; sl_test[i].expected = "1792"; in test_signed_long_formatting()
854 i++; sl_test[i].num = 0x00000070L; sl_test[i].expected = "112"; in test_signed_long_formatting()
855 i++; sl_test[i].num = 0x00000007L; sl_test[i].expected = "7"; in test_signed_long_formatting()
857 i++; sl_test[i].num = 0x50000000L; sl_test[i].expected = "1342177280"; in test_signed_long_formatting()
858 i++; sl_test[i].num = 0x05000000L; sl_test[i].expected = "83886080"; in test_signed_long_formatting()
859 i++; sl_test[i].num = 0x00500000L; sl_test[i].expected = "5242880"; in test_signed_long_formatting()
860 i++; sl_test[i].num = 0x00050000L; sl_test[i].expected = "327680"; in test_signed_long_formatting()
861 i++; sl_test[i].num = 0x00005000L; sl_test[i].expected = "20480"; in test_signed_long_formatting()
862 i++; sl_test[i].num = 0x00000500L; sl_test[i].expected = "1280"; in test_signed_long_formatting()
863 i++; sl_test[i].num = 0x00000050L; sl_test[i].expected = "80"; in test_signed_long_formatting()
864 i++; sl_test[i].num = 0x00000005L; sl_test[i].expected = "5"; in test_signed_long_formatting()
866 i++; sl_test[i].num = 0x00000001L; sl_test[i].expected = "1"; in test_signed_long_formatting()
867 i++; sl_test[i].num = 0x00000000L; sl_test[i].expected = "0"; in test_signed_long_formatting()
869 i++; sl_test[i].num = -0x7FFFFFFFL -1L; sl_test[i].expected = "-2147483648"; in test_signed_long_formatting()
870 i++; sl_test[i].num = -0x7FFFFFFEL -1L; sl_test[i].expected = "-2147483647"; in test_signed_long_formatting()
871 i++; sl_test[i].num = -0x7FFFFFFDL -1L; sl_test[i].expected = "-2147483646"; in test_signed_long_formatting()
872 i++; sl_test[i].num = -0x7FFF0000L -1L; sl_test[i].expected = "-2147418113"; in test_signed_long_formatting()
873 i++; sl_test[i].num = -0x00007FFFL -1L; sl_test[i].expected = "-32768"; in test_signed_long_formatting()
875 i++; sl_test[i].num = -0x7F000000L -1L; sl_test[i].expected = "-2130706433"; in test_signed_long_formatting()
876 i++; sl_test[i].num = -0x007F0000L -1L; sl_test[i].expected = "-8323073"; in test_signed_long_formatting()
877 i++; sl_test[i].num = -0x00007F00L -1L; sl_test[i].expected = "-32513"; in test_signed_long_formatting()
878 i++; sl_test[i].num = -0x0000007FL -1L; sl_test[i].expected = "-128"; in test_signed_long_formatting()
880 i++; sl_test[i].num = -0x70000000L -1L; sl_test[i].expected = "-1879048193"; in test_signed_long_formatting()
881 i++; sl_test[i].num = -0x07000000L -1L; sl_test[i].expected = "-117440513"; in test_signed_long_formatting()
882 i++; sl_test[i].num = -0x00700000L -1L; sl_test[i].expected = "-7340033"; in test_signed_long_formatting()
883 i++; sl_test[i].num = -0x00070000L -1L; sl_test[i].expected = "-458753"; in test_signed_long_formatting()
884 i++; sl_test[i].num = -0x00007000L -1L; sl_test[i].expected = "-28673"; in test_signed_long_formatting()
885 i++; sl_test[i].num = -0x00000700L -1L; sl_test[i].expected = "-1793"; in test_signed_long_formatting()
886 i++; sl_test[i].num = -0x00000070L -1L; sl_test[i].expected = "-113"; in test_signed_long_formatting()
887 i++; sl_test[i].num = -0x00000007L -1L; sl_test[i].expected = "-8"; in test_signed_long_formatting()
889 i++; sl_test[i].num = -0x50000000L -1L; sl_test[i].expected = "-1342177281"; in test_signed_long_formatting()
890 i++; sl_test[i].num = -0x05000000L -1L; sl_test[i].expected = "-83886081"; in test_signed_long_formatting()
891 i++; sl_test[i].num = -0x00500000L -1L; sl_test[i].expected = "-5242881"; in test_signed_long_formatting()
892 i++; sl_test[i].num = -0x00050000L -1L; sl_test[i].expected = "-327681"; in test_signed_long_formatting()
893 i++; sl_test[i].num = -0x00005000L -1L; sl_test[i].expected = "-20481"; in test_signed_long_formatting()
894 i++; sl_test[i].num = -0x00000500L -1L; sl_test[i].expected = "-1281"; in test_signed_long_formatting()
895 i++; sl_test[i].num = -0x00000050L -1L; sl_test[i].expected = "-81"; in test_signed_long_formatting()
896 i++; sl_test[i].num = -0x00000005L -1L; sl_test[i].expected = "-6"; in test_signed_long_formatting()
898 i++; sl_test[i].num = 0x00000000L -1L; sl_test[i].expected = "-1"; in test_signed_long_formatting()
904 i = 1; sl_test[i].num = 0x7FFFFFFFFFFFFFFFL; sl_test[i].expected = "9223372036854775807"; in test_signed_long_formatting()
905 i++; sl_test[i].num = 0x7FFFFFFFFFFFFFFEL; sl_test[i].expected = "9223372036854775806"; in test_signed_long_formatting()
906 i++; sl_test[i].num = 0x7FFFFFFFFFFFFFFDL; sl_test[i].expected = "9223372036854775805"; in test_signed_long_formatting()
907 i++; sl_test[i].num = 0x7FFFFFFF00000000L; sl_test[i].expected = "9223372032559808512"; in test_signed_long_formatting()
908 i++; sl_test[i].num = 0x000000007FFFFFFFL; sl_test[i].expected = "2147483647"; in test_signed_long_formatting()
910 i++; sl_test[i].num = 0x7FFF000000000000L; sl_test[i].expected = "9223090561878065152"; in test_signed_long_formatting()
911 i++; sl_test[i].num = 0x00007FFF00000000L; sl_test[i].expected = "140733193388032"; in test_signed_long_formatting()
912 i++; sl_test[i].num = 0x000000007FFF0000L; sl_test[i].expected = "2147418112"; in test_signed_long_formatting()
913 i++; sl_test[i].num = 0x0000000000007FFFL; sl_test[i].expected = "32767"; in test_signed_long_formatting()
915 i++; sl_test[i].num = 0x7F00000000000000L; sl_test[i].expected = "9151314442816847872"; in test_signed_long_formatting()
916 i++; sl_test[i].num = 0x007F000000000000L; sl_test[i].expected = "35747322042253312"; in test_signed_long_formatting()
917 i++; sl_test[i].num = 0x00007F0000000000L; sl_test[i].expected = "139637976727552"; in test_signed_long_formatting()
918 i++; sl_test[i].num = 0x0000007F00000000L; sl_test[i].expected = "545460846592"; in test_signed_long_formatting()
919 i++; sl_test[i].num = 0x000000007F000000L; sl_test[i].expected = "2130706432"; in test_signed_long_formatting()
920 i++; sl_test[i].num = 0x00000000007F0000L; sl_test[i].expected = "8323072"; in test_signed_long_formatting()
921 i++; sl_test[i].num = 0x0000000000007F00L; sl_test[i].expected = "32512"; in test_signed_long_formatting()
922 i++; sl_test[i].num = 0x000000000000007FL; sl_test[i].expected = "127"; in test_signed_long_formatting()
924 i++; sl_test[i].num = 0x7000000000000000L; sl_test[i].expected = "8070450532247928832"; in test_signed_long_formatting()
925 i++; sl_test[i].num = 0x0700000000000000L; sl_test[i].expected = "504403158265495552"; in test_signed_long_formatting()
926 i++; sl_test[i].num = 0x0070000000000000L; sl_test[i].expected = "31525197391593472"; in test_signed_long_formatting()
927 i++; sl_test[i].num = 0x0007000000000000L; sl_test[i].expected = "1970324836974592"; in test_signed_long_formatting()
928 i++; sl_test[i].num = 0x0000700000000000L; sl_test[i].expected = "123145302310912"; in test_signed_long_formatting()
929 i++; sl_test[i].num = 0x0000070000000000L; sl_test[i].expected = "7696581394432"; in test_signed_long_formatting()
930 i++; sl_test[i].num = 0x0000007000000000L; sl_test[i].expected = "481036337152"; in test_signed_long_formatting()
931 i++; sl_test[i].num = 0x0000000700000000L; sl_test[i].expected = "30064771072"; in test_signed_long_formatting()
932 i++; sl_test[i].num = 0x0000000070000000L; sl_test[i].expected = "1879048192"; in test_signed_long_formatting()
933 i++; sl_test[i].num = 0x0000000007000000L; sl_test[i].expected = "117440512"; in test_signed_long_formatting()
934 i++; sl_test[i].num = 0x0000000000700000L; sl_test[i].expected = "7340032"; in test_signed_long_formatting()
935 i++; sl_test[i].num = 0x0000000000070000L; sl_test[i].expected = "458752"; in test_signed_long_formatting()
936 i++; sl_test[i].num = 0x0000000000007000L; sl_test[i].expected = "28672"; in test_signed_long_formatting()
937 i++; sl_test[i].num = 0x0000000000000700L; sl_test[i].expected = "1792"; in test_signed_long_formatting()
938 i++; sl_test[i].num = 0x0000000000000070L; sl_test[i].expected = "112"; in test_signed_long_formatting()
939 i++; sl_test[i].num = 0x0000000000000007L; sl_test[i].expected = "7"; in test_signed_long_formatting()
941 i++; sl_test[i].num = 0x0000000000000001L; sl_test[i].expected = "1"; in test_signed_long_formatting()
942 i++; sl_test[i].num = 0x0000000000000000L; sl_test[i].expected = "0"; in test_signed_long_formatting()
944 i++; sl_test[i].num = -0x7FFFFFFFFFFFFFFFL -1L; sl_test[i].expected = "-9223372036854775808"; in test_signed_long_formatting()
945 i++; sl_test[i].num = -0x7FFFFFFFFFFFFFFEL -1L; sl_test[i].expected = "-9223372036854775807"; in test_signed_long_formatting()
946 i++; sl_test[i].num = -0x7FFFFFFFFFFFFFFDL -1L; sl_test[i].expected = "-9223372036854775806"; in test_signed_long_formatting()
947 i++; sl_test[i].num = -0x7FFFFFFF00000000L -1L; sl_test[i].expected = "-9223372032559808513"; in test_signed_long_formatting()
948 i++; sl_test[i].num = -0x000000007FFFFFFFL -1L; sl_test[i].expected = "-2147483648"; in test_signed_long_formatting()
950 i++; sl_test[i].num = -0x7FFF000000000000L -1L; sl_test[i].expected = "-9223090561878065153"; in test_signed_long_formatting()
951 i++; sl_test[i].num = -0x00007FFF00000000L -1L; sl_test[i].expected = "-140733193388033"; in test_signed_long_formatting()
952 i++; sl_test[i].num = -0x000000007FFF0000L -1L; sl_test[i].expected = "-2147418113"; in test_signed_long_formatting()
953 i++; sl_test[i].num = -0x0000000000007FFFL -1L; sl_test[i].expected = "-32768"; in test_signed_long_formatting()
955 i++; sl_test[i].num = -0x7F00000000000000L -1L; sl_test[i].expected = "-9151314442816847873"; in test_signed_long_formatting()
956 i++; sl_test[i].num = -0x007F000000000000L -1L; sl_test[i].expected = "-35747322042253313"; in test_signed_long_formatting()
957 i++; sl_test[i].num = -0x00007F0000000000L -1L; sl_test[i].expected = "-139637976727553"; in test_signed_long_formatting()
958 i++; sl_test[i].num = -0x0000007F00000000L -1L; sl_test[i].expected = "-545460846593"; in test_signed_long_formatting()
959 i++; sl_test[i].num = -0x000000007F000000L -1L; sl_test[i].expected = "-2130706433"; in test_signed_long_formatting()
960 i++; sl_test[i].num = -0x00000000007F0000L -1L; sl_test[i].expected = "-8323073"; in test_signed_long_formatting()
961 i++; sl_test[i].num = -0x0000000000007F00L -1L; sl_test[i].expected = "-32513"; in test_signed_long_formatting()
962 i++; sl_test[i].num = -0x000000000000007FL -1L; sl_test[i].expected = "-128"; in test_signed_long_formatting()
964 i++; sl_test[i].num = -0x7000000000000000L -1L; sl_test[i].expected = "-8070450532247928833"; in test_signed_long_formatting()
965 i++; sl_test[i].num = -0x0700000000000000L -1L; sl_test[i].expected = "-504403158265495553"; in test_signed_long_formatting()
966 i++; sl_test[i].num = -0x0070000000000000L -1L; sl_test[i].expected = "-31525197391593473"; in test_signed_long_formatting()
967 i++; sl_test[i].num = -0x0007000000000000L -1L; sl_test[i].expected = "-1970324836974593"; in test_signed_long_formatting()
968 i++; sl_test[i].num = -0x0000700000000000L -1L; sl_test[i].expected = "-123145302310913"; in test_signed_long_formatting()
969 i++; sl_test[i].num = -0x0000070000000000L -1L; sl_test[i].expected = "-7696581394433"; in test_signed_long_formatting()
970 i++; sl_test[i].num = -0x0000007000000000L -1L; sl_test[i].expected = "-481036337153"; in test_signed_long_formatting()
971 i++; sl_test[i].num = -0x0000000700000000L -1L; sl_test[i].expected = "-30064771073"; in test_signed_long_formatting()
972 i++; sl_test[i].num = -0x0000000070000000L -1L; sl_test[i].expected = "-1879048193"; in test_signed_long_formatting()
973 i++; sl_test[i].num = -0x0000000007000000L -1L; sl_test[i].expected = "-117440513"; in test_signed_long_formatting()
974 i++; sl_test[i].num = -0x0000000000700000L -1L; sl_test[i].expected = "-7340033"; in test_signed_long_formatting()
975 i++; sl_test[i].num = -0x0000000000070000L -1L; sl_test[i].expected = "-458753"; in test_signed_long_formatting()
976 i++; sl_test[i].num = -0x0000000000007000L -1L; sl_test[i].expected = "-28673"; in test_signed_long_formatting()
977 i++; sl_test[i].num = -0x0000000000000700L -1L; sl_test[i].expected = "-1793"; in test_signed_long_formatting()
978 i++; sl_test[i].num = -0x0000000000000070L -1L; sl_test[i].expected = "-113"; in test_signed_long_formatting()
979 i++; sl_test[i].num = -0x0000000000000007L -1L; sl_test[i].expected = "-8"; in test_signed_long_formatting()
981 i++; sl_test[i].num = 0x0000000000000000L -1L; sl_test[i].expected = "-1"; in test_signed_long_formatting()
990 sl_test[i].result[j] = 'X'; in test_signed_long_formatting()
991 sl_test[i].result[BUFSZ-1] = '\0'; in test_signed_long_formatting()
993 (void)curl_msprintf(sl_test[i].result, "%ld", sl_test[i].num); in test_signed_long_formatting()
995 if(memcmp(sl_test[i].result, in test_signed_long_formatting()
996 sl_test[i].expected, in test_signed_long_formatting()
997 strlen(sl_test[i].expected))) { in test_signed_long_formatting()
999 i, sl_test[i].expected, sl_test[i].result); in test_signed_long_formatting()