[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Stri...
From: |
Benjamin Wolsey |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Stri... |
Date: |
Thu, 06 Mar 2008 14:15:04 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Benjamin Wolsey <bwy> 08/03/06 14:15:04
Modified files:
. : ChangeLog
testsuite/actionscript.all: String.as
Log message:
* testsuite/actionscript.all/String.as: add tests for mbchr
(should
be correct) and mbord(not yet confirmed).
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5820&r2=1.5821
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/String.as?cvsroot=gnash&r1=1.41&r2=1.42
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.5820
retrieving revision 1.5821
diff -u -b -r1.5820 -r1.5821
--- ChangeLog 6 Mar 2008 13:13:12 -0000 1.5820
+++ ChangeLog 6 Mar 2008 14:15:02 -0000 1.5821
@@ -1,5 +1,10 @@
2008-03-06 Benjamin Wolsey <address@hidden>
+ * testsuite/actionscript.all/String.as: add tests for mbchr (should
+ be correct) and mbord(not yet confirmed).
+
+2008-03-06 Benjamin Wolsey <address@hidden>
+
* testsuite/actionscript.all/Global.as: correct test count.
* server/asobj/Global.cpp: forget lexical_cast, use stringstream
instead. That both fixes the locale problem and doesn't mess up
Index: testsuite/actionscript.all/String.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/String.as,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -b -r1.41 -r1.42
--- testsuite/actionscript.all/String.as 5 Mar 2008 03:56:05 -0000
1.41
+++ testsuite/actionscript.all/String.as 6 Mar 2008 14:15:04 -0000
1.42
@@ -306,7 +306,64 @@
check_equals (ord("Ϧ"), 207);
#endif
+//-------------------------------------------
+// Mbchr and mbord
+//-------------------------------------------
+
+// All versions, especially 5:
+var c;
+
+i = "Ǧ";
+
+asm {
+ push "c"
+ push "i"
+ getvariable
+ mbord
+ setvariable
+};
+
+check_equals (c, 486);
+
+i = "Ϧ";
+
+asm {
+ push "c"
+ push "i"
+ getvariable
+ mbord
+ setvariable
+};
+
+check_equals (c, 998);
+
+// And the reverse procedure:
+
+i = 998;
+
+asm {
+ push "c"
+ push "i"
+ getvariable
+ mbchr
+ setvariable
+};
+
+check_equals (c, "Ϧ");
+
+// Should return the same as mbchr(90000 - 65536)
+
+i = 90000;
+
+asm {
+ push "c"
+ push "i"
+ getvariable
+ mbchr
+ setvariable
+};
+check_equals (c, "å¾");
//-------------------------------------------
// Check multi-byte chars with all string
@@ -531,7 +588,7 @@
check_equals(r, "s:");
#if OUTPUT_VERSION < 6
- check_totals(188);
+ check_totals(192);
#else
- check_totals(218);
+ check_totals(222);
#endif
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Stri...,
Benjamin Wolsey <=