From 09cb888b485542b91e97fd789fad9852ca3d3dd0 Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Wed, 30 Mar 2016 10:13:27 -0700 Subject: [PATCH] math.floats.env: restore test cases that were disabled. --- basis/math/floats/env/env-tests.factor | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/basis/math/floats/env/env-tests.factor b/basis/math/floats/env/env-tests.factor index e2522e568b..f8e20a5a90 100755 --- a/basis/math/floats/env/env-tests.factor +++ b/basis/math/floats/env/env-tests.factor @@ -31,12 +31,8 @@ set-default-fp-env { t } +fp-overflow+ [ 2.0 100,000.0 ] [ fpow ] test-fp-exception-compiled unit-test { t } +fp-invalid-operation+ [ 2.0 0/0. 1.0e-9 ] [ ~ ] test-fp-exception-compiled unit-test -! No underflow on Linux with this test, just inexact. Reported as an Ubuntu bug: -! https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/429113 -os linux? cpu x86.64? and [ - { t } +fp-underflow+ [ 2.0 -100,000.0 ] [ fpow ] test-fp-exception unit-test - { t } +fp-underflow+ [ 2.0 -100,000.0 ] [ fpow ] test-fp-exception-compiled unit-test -] unless +{ t } +fp-underflow+ [ 2.0 -100,000.0 ] [ fpow ] test-fp-exception unit-test +{ t } +fp-underflow+ [ 2.0 -100,000.0 ] [ fpow ] test-fp-exception-compiled unit-test { t } +fp-invalid-operation+ [ 0.0 0.0 ] [ /f ] test-fp-exception-compiled unit-test { t } +fp-invalid-operation+ [ -1.0 ] [ fsqrt ] test-fp-exception-compiled unit-test