[svn:parrot] r42856 - trunk/t/op
dukeleto at svn.parrot.org
dukeleto at svn.parrot.org
Wed Dec 2 10:02:38 UTC 2009
Author: dukeleto
Date: Wed Dec 2 10:02:36 2009
New Revision: 42856
URL: https://trac.parrot.org/parrot/changeset/42856
Log:
[t][cage] Remove PGE-dependence from t/op/inf_nan.t since it is part of 'make coretest'
Modified:
trunk/t/op/inf_nan.t
Modified: trunk/t/op/inf_nan.t
==============================================================================
--- trunk/t/op/inf_nan.t Wed Dec 2 09:51:56 2009 (r42855)
+++ trunk/t/op/inf_nan.t Wed Dec 2 10:02:36 2009 (r42856)
@@ -218,13 +218,19 @@
is($N1, 'NaN', '... tanh NaN')
.end
-.sub test_atan
+.sub test_atan
$N0 = 'Inf'
$N1 = atan $N0
- like($N1,'1\.5707963.*', 'atan: atan Inf')
+ $P1 = new 'Float'
+ $P1 = $N1
+ is($P1, 1.5707963, 'atan: atan Inf',1e-6)
+
$N0 = '-Inf'
$N1 = atan $N0
- like($N1, '\-1\.5707963.*', '... atan -Inf')
+ $P1 = new 'Float'
+ $P1 = $N1
+ is($P1, -1.5707963, '... atan -Inf',1e-6)
+
$N0 = 'NaN'
$N1 = atan $N0
is($N1, 'NaN', '... atan NaN')
More information about the parrot-commits
mailing list