[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Numb...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Numb... |
Date: |
Tue, 01 Apr 2008 08:04:06 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 08/04/01 08:04:06
Modified files:
. : ChangeLog
testsuite/actionscript.all: Number.as
Log message:
rounding tests.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6132&r2=1.6133
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Number.as?cvsroot=gnash&r1=1.44&r2=1.45
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6132
retrieving revision 1.6133
diff -u -b -r1.6132 -r1.6133
--- ChangeLog 1 Apr 2008 07:29:35 -0000 1.6132
+++ ChangeLog 1 Apr 2008 08:04:05 -0000 1.6133
@@ -1,5 +1,6 @@
2008-04-01 Sandro Santilli <address@hidden>
+ * testsuite/actionscript.all/Number.as: rounding tests.
* doc/C/gnashrc.xml: removed, the good one is
doc/C/usermanual/gnashrc.xml
Index: testsuite/actionscript.all/Number.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Number.as,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -b -r1.44 -r1.45
--- testsuite/actionscript.all/Number.as 31 Mar 2008 23:18:34 -0000
1.44
+++ testsuite/actionscript.all/Number.as 1 Apr 2008 08:04:05 -0000
1.45
@@ -28,7 +28,7 @@
//
-rcsid="$Id: Number.as,v 1.44 2008/03/31 23:18:34 strk Exp $";
+rcsid="$Id: Number.as,v 1.45 2008/04/01 08:04:05 strk Exp $";
#include "check.as"
Number.hasOwnProperty = ASnative(101, 5);
@@ -493,16 +493,40 @@
check_equals(a.toString(), "5.4e-6");
check_equals(a.toString(10), "5.4e-6");
+a=new Number(2.123456789123455);
+check_equals(a.toString(), "2.12345678912346"); // rounds abs up
+
+a=new Number(-2.123456789123455);
+check_equals(a.toString(), "-2.12345678912346"); // rounds abs up
+
+a=new Number(0.1234567891234565);
+check_equals(a.toString(), "0.123456789123457"); // rounds abs up
+
+a=new Number(-0.1234567891234565);
+check_equals(a.toString(), "-0.123456789123457"); // round abs up
+
+a=new Number(1.234567891234565e+308);
+check_equals(a.toString(), "1.23456789123456e+308"); // round abs down
+
+a=new Number(-1.234567891234565e+308);
+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 ? )
+
+a=new Number(-1.234567891234565e-308); // gnash rounds this down, pp up
+xcheck_equals(a.toString(), "-1.23456789123457e-308"); // round abs up ( abs <
1 ? )
+
check( isNaN(0/0) );
// END OF TEST
#if OUTPUT_VERSION < 6
- check_totals(170);
+ check_totals(178);
#else
#if OUTPUT_VERSION < 7
- check_totals(183);
+ check_totals(191);
#else
- check_totals(181);
+ check_totals(189);
#endif
#endif
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Numb...,
Sandro Santilli <=