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:21:21 +0000

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

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.46&r2=1.47

Patches:
Index: Number.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Number.as,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -b -r1.46 -r1.47
--- Number.as   1 Apr 2008 08:19:29 -0000       1.46
+++ Number.as   1 Apr 2008 08:21:20 -0000       1.47
@@ -28,7 +28,7 @@
 //     
 
 
-rcsid="$Id: Number.as,v 1.46 2008/04/01 08:19:29 strk Exp $";
+rcsid="$Id: Number.as,v 1.47 2008/04/01 08:21:20 strk Exp $";
 #include "check.as"
 
 Number.hasOwnProperty = ASnative(101, 5);
@@ -521,18 +521,24 @@
 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_equals(a.toString(), "-0.00123456789123456"); // round abs down 
(obvious?)
+
+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 down (obvious?)
 
 check( isNaN(0/0) );
 
 // END OF TEST
 
 #if OUTPUT_VERSION < 6
- check_totals(180);
+ check_totals(182);
 #else
 #if OUTPUT_VERSION < 7
- check_totals(193);
+ check_totals(195);
 #else
- check_totals(191);
+ check_totals(193);
 #endif
 #endif




reply via email to

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