[svn:parrot] r42963 - trunk/t/op
mikehh at svn.parrot.org
mikehh at svn.parrot.org
Wed Dec 9 20:57:37 UTC 2009
Author: mikehh
Date: Wed Dec 9 20:57:35 2009
New Revision: 42963
URL: https://trac.parrot.org/parrot/changeset/42963
Log:
change tests in t/op/inf_nan.t to avoid exact test for fp numbers and compare with given precision - patch by bubaflub++ (TT #1369)
Modified:
trunk/t/op/inf_nan.t
Modified: trunk/t/op/inf_nan.t
==============================================================================
--- trunk/t/op/inf_nan.t Wed Dec 9 20:16:14 2009 (r42962)
+++ trunk/t/op/inf_nan.t Wed Dec 9 20:57:35 2009 (r42963)
@@ -316,10 +316,13 @@
.sub test_asec
$N0 = 'Inf'
$N1 = asec $N0
- is($N1, '1.5707963267949', 'asec: asec Inf')
+ $P1 = new 'Float'
+ $P1 = $N1
+ is($P1, 1.5707963, 'asec: asec Inf',1e-6)
$N0 = '-Inf'
$N1 = asec $N0
- is($N1, '1.5707963267949', '... asec -Inf')
+ $P1 = $N1
+ is($P1, 1.5707963, '... asec -Inf',1e-6)
$N0 = 'NaN'
$N1 = asec $N0
is($N1, 'NaN', 'asec NaN')
More information about the parrot-commits
mailing list