Ticket #370: rounding-nan-test.patch

File rounding-nan-test.patch, 444 bytes (added by dukeleto, 5 years ago)

Attempt at testing rounding of NaN, but I get runtime error about 'attempt to access code outside of current code segment'

  • t/op/arithmetics.t

     
    359359-124 
    360360OUTPUT 
    361361 
     362pasm_output_is( <<'CODE', <<OUTPUT, "rounding NaN gives NaN" ); 
     363       set N0, 'NaN' 
     364       floor N0 
     365       say N0 
     366       set N1, 'NaN' 
     367       ceil N1 
     368       say N1 
     369CODE 
     370NaN 
     371NaN 
     372OUTPUT 
     373 
     374 
    362375# 
    363376# FLOATVAL and INTVAL tests 
    364377#