Index: test/mjsunit/str-to-num.js |
=================================================================== |
--- test/mjsunit/str-to-num.js (revision 5369) |
+++ test/mjsunit/str-to-num.js (working copy) |
@@ -203,3 +203,7 @@ |
assertTrue(isNaN(toNumber("1e")), "1e"); |
assertTrue(isNaN(toNumber("1e ")), "1e_"); |
assertTrue(isNaN(toNumber("1" + repeat('0', 1000) + 'junk')), "1e1000 junk"); |
+ |
+for (var i = 1; i < 12; i++) { |
+ assertEquals(toNumber('1' + repeat('0', i)), Math.pow(10.0, i)); |
+} |