gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/testsuite/actionscript.all Number.as


From: Sandro Santilli
Subject: [Gnash-commit] gnash/testsuite/actionscript.all Number.as
Date: Tue, 01 Apr 2008 08:19:29 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  08/04/01 08:19:29

Modified files:
        testsuite/actionscript.all: Number.as 

Log message:
        more rounding

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Number.as?cvsroot=gnash&r1=1.45&r2=1.46

Patches:
Index: Number.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Number.as,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -b -r1.45 -r1.46
--- Number.as   1 Apr 2008 08:04:05 -0000       1.45
+++ Number.as   1 Apr 2008 08:19:29 -0000       1.46
@@ -28,7 +28,7 @@
 //     
 
 
-rcsid="$Id: Number.as,v 1.45 2008/04/01 08:04:05 strk Exp $";
+rcsid="$Id: Number.as,v 1.46 2008/04/01 08:19:29 strk Exp $";
 #include "check.as"
 
 Number.hasOwnProperty = ASnative(101, 5);
@@ -512,21 +512,27 @@
 check_equals(a.toString(), "-1.23456789123456e+308"); // round abs down
 
 a=new Number(1.234567891234565e-308);  // gnash rounds this down, pp up
-xcheck_equals(a.toString(), "1.23456789123457e-308"); // round abs up ( abs < 
1 ? )
+xcheck_equals(a.toString(), "1.23456789123457e-308"); // round abs up 
 
 a=new Number(-1.234567891234565e-308);  // gnash rounds this down, pp up
-xcheck_equals(a.toString(), "-1.23456789123457e-308"); // round abs up ( abs < 
1 ? ) 
+xcheck_equals(a.toString(), "-1.23456789123457e-308"); // round abs up 
+
+a=new Number(-0.001234567891234565); // gnash succeeds in rounding this up
+check_equals(a.toString(), "-0.00123456789123457"); // round abs up 
+
+a=new Number(-0.001234567891234564); // gnash succeeds in rounding this down
+check_equals(a.toString(), "-0.00123456789123456"); // round abs up 
 
 check( isNaN(0/0) );
 
 // END OF TEST
 
 #if OUTPUT_VERSION < 6
- check_totals(178);
+ check_totals(180);
 #else
 #if OUTPUT_VERSION < 7
- check_totals(191);
+ check_totals(193);
 #else
- check_totals(189);
+ check_totals(191);
 #endif
 #endif




reply via email to

[Prev in Thread] Current Thread [Next in Thread]