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

Unified Diff: tests/corelib/src/MathTest.dart

Issue 9264051: Fix for bug 1229: Unary operator plus is not allowed ... except for literals. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 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
Index: tests/corelib/src/MathTest.dart
===================================================================
--- tests/corelib/src/MathTest.dart (revision 3699)
+++ tests/corelib/src/MathTest.dart (working copy)
@@ -230,6 +230,7 @@
Expect.equals(true, parseIntThrowsBadNumberFormatException("- 5"));
Expect.equals(true, parseIntThrowsBadNumberFormatException(""));
Expect.equals(true, parseIntThrowsBadNumberFormatException(" "));
+ Expect.equals(true, parseIntThrowsBadNumberFormatException("+ 1"));
hausner 2012/01/31 18:09:46 Already covered in line 229, but no harm.
}
static bool parseDoubleThrowsBadNumberFormatException(str) {

Powered by Google App Engine
This is Rietveld 408576698