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

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

Issue 11358145: Update utils to new library syntax. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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 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("../../../lib/utf/utf.dart"); 8 import '../../../lib/utf/utf.dart';
9 9
10 void main() { 10 void main() {
11 TestSuite suite = new TestSuite(); 11 TestSuite suite = new TestSuite();
12 suite.registerTestClass(new UnicodeTests()); 12 suite.registerTestClass(new UnicodeTests());
13 suite.run(); 13 suite.run();
14 } 14 }
15 15
16 class UnicodeTests extends TestClass { 16 class UnicodeTests extends TestClass {
17 static const String testPhrase = 17 static const String testPhrase =
18 "The quick brown fox jumps over the lazy dog."; 18 "The quick brown fox jumps over the lazy dog.";
(...skipping 19 matching lines...) Expand all
38 } 38 }
39 39
40 void testEmptyCodepointsToString() { 40 void testEmptyCodepointsToString() {
41 Expect.stringEquals("", codepointsToString(<int>[])); 41 Expect.stringEquals("", codepointsToString(<int>[]));
42 } 42 }
43 43
44 void testEmptyStringToCodepoints() { 44 void testEmptyStringToCodepoints() {
45 Expect.listEquals([], stringToCodepoints("")); 45 Expect.listEquals([], stringToCodepoints(""));
46 } 46 }
47 } 47 }
OLDNEW
« no previous file with comments | « utils/tests/string_encoding/unicode_core_test.dart ('k') | utils/tests/string_encoding/utf16_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698