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

Unified Diff: tests/language/char_escape_test.dart

Issue 11318018: - Represent strings internally in UTF-16 format, this makes it (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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/char_escape_test.dart
===================================================================
--- tests/language/char_escape_test.dart (revision 14314)
+++ tests/language/char_escape_test.dart (working copy)
@@ -366,24 +366,24 @@
var v10000 = "\u{10000}";
var v010000 = "\u{010000}";
- Expect.equals(1, v10000.length);
- Expect.equals(1, v010000.length);
+ Expect.equals(2, v10000.length);
+ Expect.equals(2, v010000.length);
Expect.equals("\u{10000}", new String.fromCharCodes([0x10000]));
Expect.equals("\u{010000}", new String.fromCharCodes([0x10000]));
var v1FFFF = "\u{1FFFF}";
var v01FFFF = "\u{01FFFF}";
- Expect.equals(1, v1FFFF.length);
- Expect.equals(1, v01FFFF.length);
+ Expect.equals(2, v1FFFF.length);
+ Expect.equals(2, v01FFFF.length);
Expect.equals("\u{1FFFF}", new String.fromCharCodes([0x1FFFF]));
Expect.equals("\u{01FFFF}", new String.fromCharCodes([0x1FFFF]));
var v105555 = "\u{105555}";
- Expect.equals(1, v105555.length);
+ Expect.equals(2, v105555.length);
Expect.equals("\u{105555}", new String.fromCharCodes([0x105555]));
var v10FFFF = "\u{10FFFF}";
- Expect.equals(1, v10FFFF.length);
+ Expect.equals(2, v10FFFF.length);
Expect.equals("\u{10FFFF}", new String.fromCharCodes([0x10FFFF]));
var bs = "\b";

Powered by Google App Engine
This is Rietveld 408576698