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

Side by Side Diff: utils/tests/string_encoding/unicode_tests.dart

Issue 9323077: Optimize special cases in utf8 and utf16 where input can be copied to output. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: respond to comments, move throw up a little, fix unit test types. Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env dart 1 #!/usr/bin/env dart
2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 // for details. All rights reserved. Use of this source code is governed by a 3 // for details. All rights reserved. Use of this source code is governed by a
4 // BSD-style license that can be found in the LICENSE file. 4 // BSD-style license that can be found in the LICENSE file.
5 5
6 #library("unicode_tests"); 6 #library("unicode_tests");
7 #import("dunit.dart"); 7 #import("dunit.dart");
8 #import("../../string_encoding/unicode.dart"); 8 #import("../../string_encoding/unicode.dart");
9 9
10 void main() { 10 void main() {
(...skipping 14 matching lines...) Expand all
25 void registerTests(TestSuite suite) { 25 void registerTests(TestSuite suite) {
26 register("testCodepointsToString", testCodepointsToString, suite); 26 register("testCodepointsToString", testCodepointsToString, suite);
27 register("testStringToCodepoints", testStringToCodepoints, suite); 27 register("testStringToCodepoints", testStringToCodepoints, suite);
28 } 28 }
29 29
30 void testStringToCodepoints() { 30 void testStringToCodepoints() {
31 Expect.listEquals(testCodepoints, stringToCodepoints(testPhrase)); 31 Expect.listEquals(testCodepoints, stringToCodepoints(testPhrase));
32 } 32 }
33 33
34 void testCodepointsToString() { 34 void testCodepointsToString() {
35 Expect.listEquals(testPhrase, codepointsToString(testCodepoints)); 35 Expect.stringEquals(testPhrase, codepointsToString(testCodepoints));
36 } 36 }
37 } 37 }
OLDNEW
« utils/string_encoding/utf8_impl.dart ('K') | « utils/string_encoding/utf8_impl.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698