9 # Silence the deprecation warnings from bigint.pl for the purpose
10 # of testing. These tests will be removed along with bigint.pl in
11 # the next major release of perl.
12 local $SIG{__WARN__} = sub {
13 if ($_[0] !~ /deprecated/) {
29 @args = split(/:/,$_,99);
31 $try = "$f('" . join("','", @args) . "');";
32 if (($ans1 = eval($try)) eq $ans) {
35 print "not ok $test\n";
36 print "# '$try' expected: '$ans' got: '$ans1'\n";
52 000000 0000000 00000:+0
121 +9999999:+1:+10000000
122 +99999999:+1:+100000000
123 +999999999:+1:+1000000000
124 +9999999999:+1:+10000000000
125 +99999999999:+1:+100000000000
132 +10000000:-1:+9999999
133 +100000000:-1:+99999999
134 +1000000000:-1:+999999999
135 +10000000000:-1:+9999999999
136 +123456789:+987654321:+1111111110
137 -123456789:+987654321:+864197532
138 -123456789:-987654321:-1111111110
139 +123456789:-987654321:-864197532
160 +99999999:+1:+99999998
161 +999999999:+1:+999999998
162 +9999999999:+1:+9999999998
163 +99999999999:+1:+99999999998
170 +10000000:-1:+10000001
171 +100000000:-1:+100000001
172 +1000000000:-1:+1000000001
173 +10000000000:-1:+10000000001
174 +123456789:+987654321:-864197532
175 -123456789:+987654321:-1111111110
176 -123456789:-987654321:+864197532
177 +123456789:-987654321:+1111111110
187 +123456789123456789:+0:+0
188 +0:+123456789123456789:+0
198 +10101:+10101:+102030201
199 +1001001:+1001001:+1002003002001
200 +100010001:+100010001:+10002000300020001
201 +10000100001:+10000100001:+100002000030000200001
202 +11111111111:+9:+99999999999
203 +22222222222:+9:+199999999998
204 +33333333333:+9:+299999999997
205 +44444444444:+9:+399999999996
206 +55555555555:+9:+499999999995
207 +66666666666:+9:+599999999994
208 +77777777777:+9:+699999999993
209 +88888888888:+9:+799999999992
210 +99999999999:+9:+899999999991
226 +1000000000:+9:+111111111
227 +2000000000:+9:+222222222
228 +3000000000:+9:+333333333
229 +4000000000:+9:+444444444
230 +5000000000:+9:+555555555
231 +6000000000:+9:+666666666
232 +7000000000:+9:+777777777
233 +8000000000:+9:+888888888
234 +9000000000:+9:+1000000000
235 +35500000:+113:+314159
236 +71000000:+226:+314159
237 +106500000:+339:+314159
238 +1000000000:+3:+333333333
243 +999999999999:+9:+111111111111
244 +999999999999:+99:+10101010101
245 +999999999999:+999:+1001001001
246 +999999999999:+9999:+100010001
247 +999999999999999:+99999:+10000100001
282 +999999999999:+999:+0
283 +999999999999:+9999:+0
284 +999999999999999:+99999:+0