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

Unified Diff: tests/standalone/io/string_stream_test.dart

Issue 11368138: Add some support for the code-point code-unit distinction. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Implemented feedback from patch set 3 Created 8 years, 1 month 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/standalone/io/string_stream_test.dart
diff --git a/tests/standalone/io/string_stream_test.dart b/tests/standalone/io/string_stream_test.dart
index f335291d662b7b078ae172d50e2afa266bcbb7c5..cf8a08f177a3ad4bcde4de6fbb909270d50c15df 100644
--- a/tests/standalone/io/string_stream_test.dart
+++ b/tests/standalone/io/string_stream_test.dart
@@ -29,8 +29,8 @@ void testUtf8() {
Expect.equals(new String.fromCharCodes([0xffff]), s[5]);
// Surrogate pair for U+1D11E.
- Expect.equals(new String.fromCharCodes([0xd834]), s[6]);
- Expect.equals(new String.fromCharCodes([0xdd1e]), s[7]);
+ Expect.equals(new String.fromCodeUnits([0xd834, 0xdd1e]),
+ s.substring(6, 8));
}
stream.onData = stringData;
}

Powered by Google App Engine
This is Rietveld 408576698