Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2042)

Unified Diff: tests/corelib/math_parse_double_test.dart

Issue 10456060: Eliminate unary plus with hex literals (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/corelib/corelib.status ('k') | tests/corelib/math_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/math_parse_double_test.dart
===================================================================
--- tests/corelib/math_parse_double_test.dart (revision 8171)
+++ tests/corelib/math_parse_double_test.dart (working copy)
@@ -30,16 +30,12 @@
Expect.equals(-0.0, Math.parseDouble(" -0 "));
Expect.equals(true, Math.parseDouble(" -0 ").isNegative());
Expect.equals(1.0 * 0x1234567890, Math.parseDouble("0x1234567890"));
- Expect.equals(1.0 * 0x1234567890, Math.parseDouble("+0x1234567890"));
Expect.equals(1.0 * -0x1234567890, Math.parseDouble("-0x1234567890"));
Expect.equals(1.0 * 0x1234567890, Math.parseDouble(" 0x1234567890 "));
- Expect.equals(1.0 * 0x1234567890, Math.parseDouble(" +0x1234567890 "));
Expect.equals(1.0 * -0x1234567890, Math.parseDouble(" -0x1234567890 "));
Expect.equals(256.0, Math.parseDouble("0x100"));
- Expect.equals(256.0, Math.parseDouble("+0x100"));
Expect.equals(-256.0, Math.parseDouble("-0x100"));
Expect.equals(256.0, Math.parseDouble(" 0x100 "));
- Expect.equals(256.0, Math.parseDouble(" +0x100 "));
Expect.equals(-256.0, Math.parseDouble(" -0x100 "));
Expect.equals(1.0 * 0xabcdef, Math.parseDouble("0xabcdef"));
Expect.equals(1.0 * 0xABCDEF, Math.parseDouble("0xABCDEF"));
@@ -118,4 +114,8 @@
Expect.equals(true, parseDoubleThrowsBadNumberFormatException(" 1234567.e2 "));
Expect.equals(true, parseDoubleThrowsBadNumberFormatException(" +1234567.e2 "));
Expect.equals(true, parseDoubleThrowsBadNumberFormatException(" -1234567.e2 "));
+ Expect.equals(true, parseDoubleThrowsBadNumberFormatException("+0x1234567890"));
+ Expect.equals(true, parseDoubleThrowsBadNumberFormatException(" +0x1234567890 "));
+ Expect.equals(true, parseDoubleThrowsBadNumberFormatException(" +0x100 "));
+ Expect.equals(true, parseDoubleThrowsBadNumberFormatException("+0x100"));
}
« no previous file with comments | « tests/corelib/corelib.status ('k') | tests/corelib/math_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698