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:24:26 +0000

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

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.47&r2=1.48

Patches:
Index: Number.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Number.as,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -b -r1.47 -r1.48
--- Number.as   1 Apr 2008 08:21:20 -0000       1.47
+++ Number.as   1 Apr 2008 08:24:25 -0000       1.48
@@ -28,7 +28,7 @@
 //     
 
 
-rcsid="$Id: Number.as,v 1.47 2008/04/01 08:21:20 strk Exp $";
+rcsid="$Id: Number.as,v 1.48 2008/04/01 08:24:25 strk Exp $";
 #include "check.as"
 
 Number.hasOwnProperty = ASnative(101, 5);
@@ -517,16 +517,22 @@
 a=new Number(-1.234567891234565e-308);  // gnash rounds this down, pp up
 xcheck_equals(a.toString(), "-1.23456789123457e-308"); // round abs up 
 
+a=new Number(1.234567891234565e-6);  // gnash rounds this down, pp up
+xcheck_equals(a.toString(), "1.23456789123457e-6"); // round abs up 
+
+a=new Number(-1.234567891234565e-6);  // gnash rounds this down, pp up
+xcheck_equals(a.toString(), "-1.23456789123457e-6"); // 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
+a=new Number(-0.001234567891234564); 
 check_equals(a.toString(), "-0.00123456789123456"); // round abs down 
(obvious?)
 
-a=new Number(0.001234567891234565); // gnash succeeds in rounding this up
+a=new Number(0.001234567891234565); 
 check_equals(a.toString(), "0.00123456789123457"); // round abs up 
 
-a=new Number(0.001234567891234564); // gnash succeeds in rounding this down
+a=new Number(0.001234567891234564);
 check_equals(a.toString(), "0.00123456789123456"); // round abs down (obvious?)
 
 check( isNaN(0/0) );
@@ -534,11 +540,11 @@
 // END OF TEST
 
 #if OUTPUT_VERSION < 6
- check_totals(182);
+ check_totals(184);
 #else
 #if OUTPUT_VERSION < 7
- check_totals(195);
+ check_totals(197);
 #else
- check_totals(193);
+ check_totals(195);
 #endif
 #endif




reply via email to

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