| Index: tests/lib/math/math_test.dart
|
| ===================================================================
|
| --- tests/lib/math/math_test.dart (revision 24043)
|
| +++ tests/lib/math/math_test.dart (working copy)
|
| @@ -206,6 +206,10 @@
|
| Expect.equals(9, int.parse("09"));
|
| Expect.equals(9, int.parse(" 09 "));
|
| Expect.equals(-9, int.parse("-09"));
|
| + Expect.equals(0x1234567890, int.parse("+0x1234567890"));
|
| + Expect.equals(0x1234567890,int.parse(" +0x1234567890 "));
|
| + Expect.equals(0x100, int.parse("+0x100"));
|
| + Expect.equals(0x100, int.parse(" +0x100 "));
|
| Expect.equals(true, parseIntThrowsFormatException("1b"));
|
| Expect.equals(true, parseIntThrowsFormatException(" 1b "));
|
| Expect.equals(true, parseIntThrowsFormatException(" 1 b "));
|
| @@ -233,10 +237,6 @@
|
| Expect.equals(true, parseIntThrowsFormatException("- 5"));
|
| Expect.equals(true, parseIntThrowsFormatException(""));
|
| Expect.equals(true, parseIntThrowsFormatException(" "));
|
| - Expect.equals(true, parseIntThrowsFormatException("+0x1234567890"));
|
| - Expect.equals(true, parseIntThrowsFormatException(" +0x1234567890 "));
|
| - Expect.equals(true, parseIntThrowsFormatException("+0x100"));
|
| - Expect.equals(true, parseIntThrowsFormatException(" +0x100 "));
|
| }
|
|
|
| static testMain() {
|
|
|