Ticket #370: passingnantests.patch
File passingnantests.patch, 1.0 KB (added by dukeleto, 6 years ago) 


t/op/arithmetics.t
7 7 use lib qw( . lib ../lib ../../lib ); 8 8 9 9 use Test::More; 10 use Parrot::Test tests => 29;10 use Parrot::Test tests => 31; 11 11 12 12 # test for GMP 13 13 use Parrot::Config; … … 359 359 124 360 360 OUTPUT 361 361 362 363 pir_output_is( <<'CODE', <<OUTPUT, "rounding NaN gives NaN" ); 364 .sub main 365 $N0 = 'NaN' 366 $N2 = floor $N0 367 say $N2 368 $N1 = 'NaN' 369 $N3 = ceil $N1 370 say $N3 371 .end 372 CODE 373 NaN 374 NaN 375 OUTPUT 376 377 pir_output_is( <<'CODE', <<OUTPUT, "rounding Inf gives Inf"); 378 .sub main 379 $N0 = 'Inf' 380 $N1 = floor $N0 381 say $N1 382 $N2 = 'Inf' 383 $N3 = ceil $N2 384 say $N3 385 386 $N0 = 'Inf' 387 $N1 = floor $N0 388 say $N1 389 $N2 = 'Inf' 390 $N3 = ceil $N2 391 say $N3 392 .end 393 CODE 394 Inf 395 Inf 396 Inf 397 Inf 398 OUTPUT 362 399 # 363 400 # FLOATVAL and INTVAL tests 364 401 #