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

Unified Diff: tests/corelib/collection_to_string_test.dart

Issue 12282038: Remove deprecated string features. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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/collection_to_string_test.dart
diff --git a/tests/corelib/collection_to_string_test.dart b/tests/corelib/collection_to_string_test.dart
index 694aa0f5efc04c03937f42b28791df1f7cf4edfb..98820221d8510ef227de8bbb63c8d7edaab29be6 100644
--- a/tests/corelib/collection_to_string_test.dart
+++ b/tests/corelib/collection_to_string_test.dart
@@ -299,7 +299,7 @@ bool randomBool() {
/** Returns the alphabetized characters in a string. */
String alphagram(String s) {
- List<int> chars = s.charCodes;
+ List<int> chars = s.codeUnits.toList();
floitsch 2013/02/19 14:03:06 Add comment to explain why "toList" (make it modif
Lasse Reichstein Nielsen 2013/02/20 06:38:23 Done.
Lasse Reichstein Nielsen 2013/02/20 06:38:23 Done.
chars.sort((int a, int b) => a - b);
return new String.fromCharCodes(chars);
}

Powered by Google App Engine
This is Rietveld 408576698