math.floats.env: fix compiled trap unit tests
parent
894e300729
commit
db9b2897dd
|
@ -106,7 +106,7 @@ set-default-fp-env
|
||||||
append '[ _ _ with-fp-traps ] ;
|
append '[ _ _ with-fp-traps ] ;
|
||||||
|
|
||||||
: test-traps-compiled ( traps inputs quot -- quot' )
|
: test-traps-compiled ( traps inputs quot -- quot' )
|
||||||
swapd '[ _ [ _ _ with-fp-traps ] compile-call ] ;
|
swapd '[ @ [ _ _ with-fp-traps ] compile-call ] ;
|
||||||
|
|
||||||
{ +fp-zero-divide+ } [ 1.0 0.0 ] [ /f ] test-traps must-fail
|
{ +fp-zero-divide+ } [ 1.0 0.0 ] [ /f ] test-traps must-fail
|
||||||
{ +fp-inexact+ } [ 1.0 3.0 ] [ /f ] test-traps must-fail
|
{ +fp-inexact+ } [ 1.0 3.0 ] [ /f ] test-traps must-fail
|
||||||
|
|
Loading…
Reference in New Issue