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

Unified Diff: tests/language/string_unicode4_negative_test.dart

Issue 2304923002: Allow surrogates in string literals. (Closed)
Patch Set: Fixed another test Created 4 years, 3 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/language/string_unicode4_negative_test.dart
diff --git a/tests/language/string_unicode4_negative_test.dart b/tests/language/string_unicode4_negative_test.dart
index b4ee30fa814c86d25e4d01738a83960739957762..c7bdf6002bcc333c22e158f280807fc919bbc968 100644
--- a/tests/language/string_unicode4_negative_test.dart
+++ b/tests/language/string_unicode4_negative_test.dart
@@ -5,10 +5,8 @@
class StringUnicode4NegativeTest {
static testMain() {
- // Unicode escapes must refer to valid Unicode points and not surrogate characters
+ // Unicode escapes must refer to valid Unicode points.
String str = "Foo\u{FFFFFF}";
- str = "Foo\uD800";
- str = "Foo\uDC00";
}
}
« tests/language/string_literals_test.dart ('K') | « tests/language/string_literals_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698