Lines Matching refs:sl_test

118 static struct siglong_st  sl_test[SLONG_TESTS_ARRSZ];  variable
934 i = 1; sl_test[i].num = 0x7FFFL; sl_test[i].expected = "32767"; in test_signed_long_formatting()
935 i++; sl_test[i].num = 0x7FFEL; sl_test[i].expected = "32766"; in test_signed_long_formatting()
936 i++; sl_test[i].num = 0x7FFDL; sl_test[i].expected = "32765"; in test_signed_long_formatting()
937 i++; sl_test[i].num = 0x7F00L; sl_test[i].expected = "32512"; in test_signed_long_formatting()
938 i++; sl_test[i].num = 0x07F0L; sl_test[i].expected = "2032"; in test_signed_long_formatting()
939 i++; sl_test[i].num = 0x007FL; sl_test[i].expected = "127"; in test_signed_long_formatting()
941 i++; sl_test[i].num = 0x7000L; sl_test[i].expected = "28672"; in test_signed_long_formatting()
942 i++; sl_test[i].num = 0x0700L; sl_test[i].expected = "1792"; in test_signed_long_formatting()
943 i++; sl_test[i].num = 0x0070L; sl_test[i].expected = "112"; in test_signed_long_formatting()
944 i++; sl_test[i].num = 0x0007L; sl_test[i].expected = "7"; in test_signed_long_formatting()
946 i++; sl_test[i].num = 0x5000L; sl_test[i].expected = "20480"; in test_signed_long_formatting()
947 i++; sl_test[i].num = 0x0500L; sl_test[i].expected = "1280"; in test_signed_long_formatting()
948 i++; sl_test[i].num = 0x0050L; sl_test[i].expected = "80"; in test_signed_long_formatting()
949 i++; sl_test[i].num = 0x0005L; sl_test[i].expected = "5"; in test_signed_long_formatting()
951 i++; sl_test[i].num = 0x0001L; sl_test[i].expected = "1"; in test_signed_long_formatting()
952 i++; sl_test[i].num = 0x0000L; sl_test[i].expected = "0"; in test_signed_long_formatting()
954 i++; sl_test[i].num = -0x7FFFL -1L; sl_test[i].expected = "-32768"; in test_signed_long_formatting()
955 i++; sl_test[i].num = -0x7FFEL -1L; sl_test[i].expected = "-32767"; in test_signed_long_formatting()
956 i++; sl_test[i].num = -0x7FFDL -1L; sl_test[i].expected = "-32766"; in test_signed_long_formatting()
957 i++; sl_test[i].num = -0x7F00L -1L; sl_test[i].expected = "-32513"; in test_signed_long_formatting()
958 i++; sl_test[i].num = -0x07F0L -1L; sl_test[i].expected = "-2033"; in test_signed_long_formatting()
959 i++; sl_test[i].num = -0x007FL -1L; sl_test[i].expected = "-128"; in test_signed_long_formatting()
961 i++; sl_test[i].num = -0x7000L -1L; sl_test[i].expected = "-28673"; in test_signed_long_formatting()
962 i++; sl_test[i].num = -0x0700L -1L; sl_test[i].expected = "-1793"; in test_signed_long_formatting()
963 i++; sl_test[i].num = -0x0070L -1L; sl_test[i].expected = "-113"; in test_signed_long_formatting()
964 i++; sl_test[i].num = -0x0007L -1L; sl_test[i].expected = "-8"; in test_signed_long_formatting()
966 i++; sl_test[i].num = -0x5000L -1L; sl_test[i].expected = "-20481"; in test_signed_long_formatting()
967 i++; sl_test[i].num = -0x0500L -1L; sl_test[i].expected = "-1281"; in test_signed_long_formatting()
968 i++; sl_test[i].num = -0x0050L -1L; sl_test[i].expected = "-81"; in test_signed_long_formatting()
969 i++; sl_test[i].num = -0x0005L -1L; sl_test[i].expected = "-6"; in test_signed_long_formatting()
971 i++; sl_test[i].num = 0x0000L -1L; sl_test[i].expected = "-1"; in test_signed_long_formatting()
977 i = 1; sl_test[i].num = 0x7FFFFFFFL; sl_test[i].expected = "2147483647"; in test_signed_long_formatting()
978 i++; sl_test[i].num = 0x7FFFFFFEL; sl_test[i].expected = "2147483646"; in test_signed_long_formatting()
979 i++; sl_test[i].num = 0x7FFFFFFDL; sl_test[i].expected = "2147483645"; in test_signed_long_formatting()
980 i++; sl_test[i].num = 0x7FFF0000L; sl_test[i].expected = "2147418112"; in test_signed_long_formatting()
981 i++; sl_test[i].num = 0x00007FFFL; sl_test[i].expected = "32767"; in test_signed_long_formatting()
983 i++; sl_test[i].num = 0x7F000000L; sl_test[i].expected = "2130706432"; in test_signed_long_formatting()
984 i++; sl_test[i].num = 0x007F0000L; sl_test[i].expected = "8323072"; in test_signed_long_formatting()
985 i++; sl_test[i].num = 0x00007F00L; sl_test[i].expected = "32512"; in test_signed_long_formatting()
986 i++; sl_test[i].num = 0x0000007FL; sl_test[i].expected = "127"; in test_signed_long_formatting()
988 i++; sl_test[i].num = 0x70000000L; sl_test[i].expected = "1879048192"; in test_signed_long_formatting()
989 i++; sl_test[i].num = 0x07000000L; sl_test[i].expected = "117440512"; in test_signed_long_formatting()
990 i++; sl_test[i].num = 0x00700000L; sl_test[i].expected = "7340032"; in test_signed_long_formatting()
991 i++; sl_test[i].num = 0x00070000L; sl_test[i].expected = "458752"; in test_signed_long_formatting()
992 i++; sl_test[i].num = 0x00007000L; sl_test[i].expected = "28672"; in test_signed_long_formatting()
993 i++; sl_test[i].num = 0x00000700L; sl_test[i].expected = "1792"; in test_signed_long_formatting()
994 i++; sl_test[i].num = 0x00000070L; sl_test[i].expected = "112"; in test_signed_long_formatting()
995 i++; sl_test[i].num = 0x00000007L; sl_test[i].expected = "7"; in test_signed_long_formatting()
997 i++; sl_test[i].num = 0x50000000L; sl_test[i].expected = "1342177280"; in test_signed_long_formatting()
998 i++; sl_test[i].num = 0x05000000L; sl_test[i].expected = "83886080"; in test_signed_long_formatting()
999 i++; sl_test[i].num = 0x00500000L; sl_test[i].expected = "5242880"; in test_signed_long_formatting()
1000 i++; sl_test[i].num = 0x00050000L; sl_test[i].expected = "327680"; in test_signed_long_formatting()
1001 i++; sl_test[i].num = 0x00005000L; sl_test[i].expected = "20480"; in test_signed_long_formatting()
1002 i++; sl_test[i].num = 0x00000500L; sl_test[i].expected = "1280"; in test_signed_long_formatting()
1003 i++; sl_test[i].num = 0x00000050L; sl_test[i].expected = "80"; in test_signed_long_formatting()
1004 i++; sl_test[i].num = 0x00000005L; sl_test[i].expected = "5"; in test_signed_long_formatting()
1006 i++; sl_test[i].num = 0x00000001L; sl_test[i].expected = "1"; in test_signed_long_formatting()
1007 i++; sl_test[i].num = 0x00000000L; sl_test[i].expected = "0"; in test_signed_long_formatting()
1009 i++; sl_test[i].num = -0x7FFFFFFFL -1L; sl_test[i].expected = "-2147483648"; in test_signed_long_formatting()
1010 i++; sl_test[i].num = -0x7FFFFFFEL -1L; sl_test[i].expected = "-2147483647"; in test_signed_long_formatting()
1011 i++; sl_test[i].num = -0x7FFFFFFDL -1L; sl_test[i].expected = "-2147483646"; in test_signed_long_formatting()
1012 i++; sl_test[i].num = -0x7FFF0000L -1L; sl_test[i].expected = "-2147418113"; in test_signed_long_formatting()
1013 i++; sl_test[i].num = -0x00007FFFL -1L; sl_test[i].expected = "-32768"; in test_signed_long_formatting()
1015 i++; sl_test[i].num = -0x7F000000L -1L; sl_test[i].expected = "-2130706433"; in test_signed_long_formatting()
1016 i++; sl_test[i].num = -0x007F0000L -1L; sl_test[i].expected = "-8323073"; in test_signed_long_formatting()
1017 i++; sl_test[i].num = -0x00007F00L -1L; sl_test[i].expected = "-32513"; in test_signed_long_formatting()
1018 i++; sl_test[i].num = -0x0000007FL -1L; sl_test[i].expected = "-128"; in test_signed_long_formatting()
1020 i++; sl_test[i].num = -0x70000000L -1L; sl_test[i].expected = "-1879048193"; in test_signed_long_formatting()
1021 i++; sl_test[i].num = -0x07000000L -1L; sl_test[i].expected = "-117440513"; in test_signed_long_formatting()
1022 i++; sl_test[i].num = -0x00700000L -1L; sl_test[i].expected = "-7340033"; in test_signed_long_formatting()
1023 i++; sl_test[i].num = -0x00070000L -1L; sl_test[i].expected = "-458753"; in test_signed_long_formatting()
1024 i++; sl_test[i].num = -0x00007000L -1L; sl_test[i].expected = "-28673"; in test_signed_long_formatting()
1025 i++; sl_test[i].num = -0x00000700L -1L; sl_test[i].expected = "-1793"; in test_signed_long_formatting()
1026 i++; sl_test[i].num = -0x00000070L -1L; sl_test[i].expected = "-113"; in test_signed_long_formatting()
1027 i++; sl_test[i].num = -0x00000007L -1L; sl_test[i].expected = "-8"; in test_signed_long_formatting()
1029 i++; sl_test[i].num = -0x50000000L -1L; sl_test[i].expected = "-1342177281"; in test_signed_long_formatting()
1030 i++; sl_test[i].num = -0x05000000L -1L; sl_test[i].expected = "-83886081"; in test_signed_long_formatting()
1031 i++; sl_test[i].num = -0x00500000L -1L; sl_test[i].expected = "-5242881"; in test_signed_long_formatting()
1032 i++; sl_test[i].num = -0x00050000L -1L; sl_test[i].expected = "-327681"; in test_signed_long_formatting()
1033 i++; sl_test[i].num = -0x00005000L -1L; sl_test[i].expected = "-20481"; in test_signed_long_formatting()
1034 i++; sl_test[i].num = -0x00000500L -1L; sl_test[i].expected = "-1281"; in test_signed_long_formatting()
1035 i++; sl_test[i].num = -0x00000050L -1L; sl_test[i].expected = "-81"; in test_signed_long_formatting()
1036 i++; sl_test[i].num = -0x00000005L -1L; sl_test[i].expected = "-6"; in test_signed_long_formatting()
1038 i++; sl_test[i].num = 0x00000000L -1L; sl_test[i].expected = "-1"; in test_signed_long_formatting()
1044 i = 1; sl_test[i].num = 0x7FFFFFFFFFFFFFFFL; sl_test[i].expected = "9223372036854775807"; in test_signed_long_formatting()
1045 i++; sl_test[i].num = 0x7FFFFFFFFFFFFFFEL; sl_test[i].expected = "9223372036854775806"; in test_signed_long_formatting()
1046 i++; sl_test[i].num = 0x7FFFFFFFFFFFFFFDL; sl_test[i].expected = "9223372036854775805"; in test_signed_long_formatting()
1047 i++; sl_test[i].num = 0x7FFFFFFF00000000L; sl_test[i].expected = "9223372032559808512"; in test_signed_long_formatting()
1048 i++; sl_test[i].num = 0x000000007FFFFFFFL; sl_test[i].expected = "2147483647"; in test_signed_long_formatting()
1050 i++; sl_test[i].num = 0x7FFF000000000000L; sl_test[i].expected = "9223090561878065152"; in test_signed_long_formatting()
1051 i++; sl_test[i].num = 0x00007FFF00000000L; sl_test[i].expected = "140733193388032"; in test_signed_long_formatting()
1052 i++; sl_test[i].num = 0x000000007FFF0000L; sl_test[i].expected = "2147418112"; in test_signed_long_formatting()
1053 i++; sl_test[i].num = 0x0000000000007FFFL; sl_test[i].expected = "32767"; in test_signed_long_formatting()
1055 i++; sl_test[i].num = 0x7F00000000000000L; sl_test[i].expected = "9151314442816847872"; in test_signed_long_formatting()
1056 i++; sl_test[i].num = 0x007F000000000000L; sl_test[i].expected = "35747322042253312"; in test_signed_long_formatting()
1057 i++; sl_test[i].num = 0x00007F0000000000L; sl_test[i].expected = "139637976727552"; in test_signed_long_formatting()
1058 i++; sl_test[i].num = 0x0000007F00000000L; sl_test[i].expected = "545460846592"; in test_signed_long_formatting()
1059 i++; sl_test[i].num = 0x000000007F000000L; sl_test[i].expected = "2130706432"; in test_signed_long_formatting()
1060 i++; sl_test[i].num = 0x00000000007F0000L; sl_test[i].expected = "8323072"; in test_signed_long_formatting()
1061 i++; sl_test[i].num = 0x0000000000007F00L; sl_test[i].expected = "32512"; in test_signed_long_formatting()
1062 i++; sl_test[i].num = 0x000000000000007FL; sl_test[i].expected = "127"; in test_signed_long_formatting()
1064 i++; sl_test[i].num = 0x7000000000000000L; sl_test[i].expected = "8070450532247928832"; in test_signed_long_formatting()
1065 i++; sl_test[i].num = 0x0700000000000000L; sl_test[i].expected = "504403158265495552"; in test_signed_long_formatting()
1066 i++; sl_test[i].num = 0x0070000000000000L; sl_test[i].expected = "31525197391593472"; in test_signed_long_formatting()
1067 i++; sl_test[i].num = 0x0007000000000000L; sl_test[i].expected = "1970324836974592"; in test_signed_long_formatting()
1068 i++; sl_test[i].num = 0x0000700000000000L; sl_test[i].expected = "123145302310912"; in test_signed_long_formatting()
1069 i++; sl_test[i].num = 0x0000070000000000L; sl_test[i].expected = "7696581394432"; in test_signed_long_formatting()
1070 i++; sl_test[i].num = 0x0000007000000000L; sl_test[i].expected = "481036337152"; in test_signed_long_formatting()
1071 i++; sl_test[i].num = 0x0000000700000000L; sl_test[i].expected = "30064771072"; in test_signed_long_formatting()
1072 i++; sl_test[i].num = 0x0000000070000000L; sl_test[i].expected = "1879048192"; in test_signed_long_formatting()
1073 i++; sl_test[i].num = 0x0000000007000000L; sl_test[i].expected = "117440512"; in test_signed_long_formatting()
1074 i++; sl_test[i].num = 0x0000000000700000L; sl_test[i].expected = "7340032"; in test_signed_long_formatting()
1075 i++; sl_test[i].num = 0x0000000000070000L; sl_test[i].expected = "458752"; in test_signed_long_formatting()
1076 i++; sl_test[i].num = 0x0000000000007000L; sl_test[i].expected = "28672"; in test_signed_long_formatting()
1077 i++; sl_test[i].num = 0x0000000000000700L; sl_test[i].expected = "1792"; in test_signed_long_formatting()
1078 i++; sl_test[i].num = 0x0000000000000070L; sl_test[i].expected = "112"; in test_signed_long_formatting()
1079 i++; sl_test[i].num = 0x0000000000000007L; sl_test[i].expected = "7"; in test_signed_long_formatting()
1081 i++; sl_test[i].num = 0x0000000000000001L; sl_test[i].expected = "1"; in test_signed_long_formatting()
1082 i++; sl_test[i].num = 0x0000000000000000L; sl_test[i].expected = "0"; in test_signed_long_formatting()
1084 i++; sl_test[i].num = -0x7FFFFFFFFFFFFFFFL -1L; sl_test[i].expected = "-9223372036854775808"; in test_signed_long_formatting()
1085 i++; sl_test[i].num = -0x7FFFFFFFFFFFFFFEL -1L; sl_test[i].expected = "-9223372036854775807"; in test_signed_long_formatting()
1086 i++; sl_test[i].num = -0x7FFFFFFFFFFFFFFDL -1L; sl_test[i].expected = "-9223372036854775806"; in test_signed_long_formatting()
1087 i++; sl_test[i].num = -0x7FFFFFFF00000000L -1L; sl_test[i].expected = "-9223372032559808513"; in test_signed_long_formatting()
1088 i++; sl_test[i].num = -0x000000007FFFFFFFL -1L; sl_test[i].expected = "-2147483648"; in test_signed_long_formatting()
1090 i++; sl_test[i].num = -0x7FFF000000000000L -1L; sl_test[i].expected = "-9223090561878065153"; in test_signed_long_formatting()
1091 i++; sl_test[i].num = -0x00007FFF00000000L -1L; sl_test[i].expected = "-140733193388033"; in test_signed_long_formatting()
1092 i++; sl_test[i].num = -0x000000007FFF0000L -1L; sl_test[i].expected = "-2147418113"; in test_signed_long_formatting()
1093 i++; sl_test[i].num = -0x0000000000007FFFL -1L; sl_test[i].expected = "-32768"; in test_signed_long_formatting()
1095 i++; sl_test[i].num = -0x7F00000000000000L -1L; sl_test[i].expected = "-9151314442816847873"; in test_signed_long_formatting()
1096 i++; sl_test[i].num = -0x007F000000000000L -1L; sl_test[i].expected = "-35747322042253313"; in test_signed_long_formatting()
1097 i++; sl_test[i].num = -0x00007F0000000000L -1L; sl_test[i].expected = "-139637976727553"; in test_signed_long_formatting()
1098 i++; sl_test[i].num = -0x0000007F00000000L -1L; sl_test[i].expected = "-545460846593"; in test_signed_long_formatting()
1099 i++; sl_test[i].num = -0x000000007F000000L -1L; sl_test[i].expected = "-2130706433"; in test_signed_long_formatting()
1100 i++; sl_test[i].num = -0x00000000007F0000L -1L; sl_test[i].expected = "-8323073"; in test_signed_long_formatting()
1101 i++; sl_test[i].num = -0x0000000000007F00L -1L; sl_test[i].expected = "-32513"; in test_signed_long_formatting()
1102 i++; sl_test[i].num = -0x000000000000007FL -1L; sl_test[i].expected = "-128"; in test_signed_long_formatting()
1104 i++; sl_test[i].num = -0x7000000000000000L -1L; sl_test[i].expected = "-8070450532247928833"; in test_signed_long_formatting()
1105 i++; sl_test[i].num = -0x0700000000000000L -1L; sl_test[i].expected = "-504403158265495553"; in test_signed_long_formatting()
1106 i++; sl_test[i].num = -0x0070000000000000L -1L; sl_test[i].expected = "-31525197391593473"; in test_signed_long_formatting()
1107 i++; sl_test[i].num = -0x0007000000000000L -1L; sl_test[i].expected = "-1970324836974593"; in test_signed_long_formatting()
1108 i++; sl_test[i].num = -0x0000700000000000L -1L; sl_test[i].expected = "-123145302310913"; in test_signed_long_formatting()
1109 i++; sl_test[i].num = -0x0000070000000000L -1L; sl_test[i].expected = "-7696581394433"; in test_signed_long_formatting()
1110 i++; sl_test[i].num = -0x0000007000000000L -1L; sl_test[i].expected = "-481036337153"; in test_signed_long_formatting()
1111 i++; sl_test[i].num = -0x0000000700000000L -1L; sl_test[i].expected = "-30064771073"; in test_signed_long_formatting()
1112 i++; sl_test[i].num = -0x0000000070000000L -1L; sl_test[i].expected = "-1879048193"; in test_signed_long_formatting()
1113 i++; sl_test[i].num = -0x0000000007000000L -1L; sl_test[i].expected = "-117440513"; in test_signed_long_formatting()
1114 i++; sl_test[i].num = -0x0000000000700000L -1L; sl_test[i].expected = "-7340033"; in test_signed_long_formatting()
1115 i++; sl_test[i].num = -0x0000000000070000L -1L; sl_test[i].expected = "-458753"; in test_signed_long_formatting()
1116 i++; sl_test[i].num = -0x0000000000007000L -1L; sl_test[i].expected = "-28673"; in test_signed_long_formatting()
1117 i++; sl_test[i].num = -0x0000000000000700L -1L; sl_test[i].expected = "-1793"; in test_signed_long_formatting()
1118 i++; sl_test[i].num = -0x0000000000000070L -1L; sl_test[i].expected = "-113"; in test_signed_long_formatting()
1119 i++; sl_test[i].num = -0x0000000000000007L -1L; sl_test[i].expected = "-8"; in test_signed_long_formatting()
1121 i++; sl_test[i].num = 0x0000000000000000L -1L; sl_test[i].expected = "-1"; in test_signed_long_formatting()
1130 sl_test[i].result[j] = 'X'; in test_signed_long_formatting()
1131 sl_test[i].result[BUFSZ-1] = '\0'; in test_signed_long_formatting()
1133 (void)curl_msprintf(sl_test[i].result, "%ld", sl_test[i].num); in test_signed_long_formatting()
1135 if(memcmp(sl_test[i].result, in test_signed_long_formatting()
1136 sl_test[i].expected, in test_signed_long_formatting()
1137 strlen(sl_test[i].expected))) { in test_signed_long_formatting()
1139 i, sl_test[i].expected, sl_test[i].result); in test_signed_long_formatting()