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

Unified Diff: tests/language/string_interpolation6_test.dart

Issue 2230823002: Fix string_interpolation tests. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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/language/string_interpolation6_negative_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/string_interpolation6_test.dart
diff --git a/tests/language/string_interpolation6_negative_test.dart b/tests/language/string_interpolation6_test.dart
similarity index 80%
rename from tests/language/string_interpolation6_negative_test.dart
rename to tests/language/string_interpolation6_test.dart
index e90545fc1b1faefada5133c83448dd0278c68d97..155f9fbc09f35b9cd88e51adff39ff38429aa740 100644
--- a/tests/language/string_interpolation6_negative_test.dart
+++ b/tests/language/string_interpolation6_test.dart
@@ -5,9 +5,10 @@
// A dollar must be followed by a "{" or an identifier.
class StringInterpolation6NegativeTest {
- testMain() {
+ static testMain() {
// Dollar not followed by "{" or identifier.
- String regexp = "^(\\d\\d?)[-/](\\d\\d?)$";
+ String regexp;
+ regexp = "^(\\d\\d?)[-/](\\d\\d?)$"; /// 01: compile-time error
print(regexp);
}
}
« no previous file with comments | « tests/language/string_interpolation6_negative_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698