[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r10529: more tests for string-to-num
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r10529: more tests for string-to-number (more failing) |
Date: |
Fri, 09 Jan 2009 13:02:46 +0100 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 10529
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Fri 2009-01-09 13:02:46 +0100
message:
more tests for string-to-number (more failing)
modified:
testsuite/actionscript.all/Number.as
=== modified file 'testsuite/actionscript.all/Number.as'
--- a/testsuite/actionscript.all/Number.as 2009-01-09 11:28:19 +0000
+++ b/testsuite/actionscript.all/Number.as 2009-01-09 12:02:46 +0000
@@ -573,6 +573,9 @@
a=new Number(" 2");
xcheck_equals(a, 2);
+a=new Number("2 ");
+check(isNaN(a));
+
a=new Number("2a");
check(isNaN(a));
@@ -585,16 +588,33 @@
a=new Number(new String(" 2"));
xcheck_equals(a, 2);
+a=new Number("0x2");
+#if OUTPUT_VERSION < 6
+ check(isNaN(a));
+#else
+ xcheck_equals(a, 2);
+#endif
+
+a=Number("0x2");
+#if OUTPUT_VERSION < 6
+ check(isNaN(a));
+#else
+ xcheck_equals(a, 2);
+#endif
+
+a=new Number(" 0x2");
+check(isNaN(a));
+
check( isNaN(0/0) );
// END OF TEST
#if OUTPUT_VERSION < 6
- check_totals(218);
+ check_totals(222);
#else
#if OUTPUT_VERSION < 7
- check_totals(211);
+ check_totals(215);
#else
- check_totals(209);
+ check_totals(213);
#endif
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r10529: more tests for string-to-number (more failing),
Sandro Santilli <=