[svn:parrot] r39535 - trunk/t/op
Infinoid at svn.parrot.org
Infinoid at svn.parrot.org
Sat Jun 13 15:46:46 UTC 2009
Author: Infinoid
Date: Sat Jun 13 15:46:45 2009
New Revision: 39535
URL: https://trac.parrot.org/parrot/changeset/39535
Log:
Apply patch from bacek++ to fix a failing test caused by floating point precision differences on x86-64.
Modified:
trunk/t/op/number.t
Modified: trunk/t/op/number.t
==============================================================================
--- trunk/t/op/number.t Sat Jun 13 06:12:50 2009 (r39534)
+++ trunk/t/op/number.t Sat Jun 13 15:46:45 2009 (r39535)
@@ -1081,7 +1081,8 @@
0.5
OUTPUT
-pasm_output_is( <<'CODE', <<OUTPUT, "sqrt_n_n" );
+# Don't check exact string representation. Last digit part can be different */
+pasm_output_like( <<'CODE', <<OUTPUT, "sqrt_n_n" );
set N1, 2
sqrt N2, N1
say N2
@@ -1089,8 +1090,7 @@
say N2
end
CODE
-1.4142135623731
-1.4142135623731
+/^1.414213562373.*\n1.414213562373.*/
OUTPUT
pasm_error_output_like( <<'CODE', <<OUTPUT, "div_n_n by zero" );
More information about the parrot-commits
mailing list