[svn:parrot] r39299 - branches/tt24_unicode_numifications/t/op

bacek at svn.parrot.org bacek at svn.parrot.org
Sun May 31 22:45:57 UTC 2009


Author: bacek
Date: Sun May 31 22:45:56 2009
New Revision: 39299
URL: https://trac.parrot.org/parrot/changeset/39299

Log:
[t] Remove check for lond double in sqrt_n_n results.

We now parsing floats more precisely so sqrt(2.0) always equal sqrt(2)

Modified:
   branches/tt24_unicode_numifications/t/op/number.t

Modified: branches/tt24_unicode_numifications/t/op/number.t
==============================================================================
--- branches/tt24_unicode_numifications/t/op/number.t	Sun May 31 22:43:26 2009	(r39298)
+++ branches/tt24_unicode_numifications/t/op/number.t	Sun May 31 22:45:56 2009	(r39299)
@@ -1081,14 +1081,7 @@
 0.5
 OUTPUT
 
-# long double succeeds
-$output = $PConfig{numvalsize} == 8
-  ? '1.4142135623731
-1.41421356237309
-' : '1.4142135623731
-1.4142135623731
-';
-pasm_output_is( <<'CODE', $output, "sqrt_n_n" );
+pasm_output_is( <<'CODE', <<OUTPUT, "sqrt_n_n" );
         set N1, 2
         sqrt N2, N1
         say N2
@@ -1096,6 +1089,9 @@
         say N2
         end
 CODE
+1.4142135623731
+1.4142135623731
+OUTPUT
 
 pasm_error_output_like( <<'CODE', <<OUTPUT, "div_n_n by zero" );
         set N0, 0


More information about the parrot-commits mailing list