[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/misc-swfc.all/swf4opc...
From: |
Benjamin Wolsey |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/misc-swfc.all/swf4opc... |
Date: |
Wed, 02 Apr 2008 07:59:39 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Benjamin Wolsey <bwy> 08/04/02 07:59:39
Modified files:
. : ChangeLog
testsuite/misc-swfc.all: swf4opcode.sc
Log message:
* testsuite/misc-swfc.all/swf4opcode.sc: was just about to add
exponent
tests. Here are some more. Also test for decimal separator.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6152&r2=1.6153
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-swfc.all/swf4opcode.sc?cvsroot=gnash&r1=1.8&r2=1.9
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6152
retrieving revision 1.6153
diff -u -b -r1.6152 -r1.6153
--- ChangeLog 2 Apr 2008 07:47:05 -0000 1.6152
+++ ChangeLog 2 Apr 2008 07:59:38 -0000 1.6153
@@ -1,3 +1,8 @@
+2008-04-01 Benjamin Wolsey <address@hidden>
+
+ * testsuite/misc-swfc.all/swf4opcode.sc: was just about to add exponent
+ tests. Here are some more. Also test for decimal separator.
+
2008-04-01 Sandro Santilli <address@hidden>
* testsuite/misc-swfc.all/swf4opcode.sc: check that scientific
Index: testsuite/misc-swfc.all/swf4opcode.sc
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-swfc.all/swf4opcode.sc,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- testsuite/misc-swfc.all/swf4opcode.sc 2 Apr 2008 07:47:07 -0000
1.8
+++ testsuite/misc-swfc.all/swf4opcode.sc 2 Apr 2008 07:59:39 -0000
1.9
@@ -123,9 +123,28 @@
check_equals( y, 0 );
y = ' 4';
check_equals( y, 4 );
+ // This needs to work in all locales
+ y = '4.5';
+ check_equals( y, 4.5 );
+ y = '4,5';
+ xcheck_equals( y, 4 );
+ // exponent
+ y = '4.5e4';
+ xcheck_equals( y, 45000 );
+ y = '4.5E4';
+ xcheck_equals( y, 45000 );
+ y = '+4.5e4';
+ xcheck_equals( y, 45000 );
+ y = '-4.5e4';
+ xcheck_equals( y, -45000 );
+ y = '4.5e+4';
+ xcheck_equals( y, 45000 );
+ y = '4.5e-4';
+ xcheck_equals( y, 0.00045 );
+ y = '-4.5e-4';
+ xcheck_equals( y, -0.00045 );
x = '2e1';
check_equals(x+1, 21);
-
//
// test ActionLessThan
//