OLD | NEW |
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 '../../../sdk/lib/utf/utf.dart'; | |
9 | 8 |
10 void main() { | 9 void main() { |
11 TestSuite suite = new TestSuite(); | 10 TestSuite suite = new TestSuite(); |
12 suite.registerTestClass(new UnicodeTests()); | 11 suite.registerTestClass(new UnicodeTests()); |
13 suite.run(); | 12 suite.run(); |
14 } | 13 } |
15 | 14 |
16 class UnicodeTests extends TestClass { | 15 class UnicodeTests extends TestClass { |
17 static const String testPhrase = | 16 static const String testPhrase = |
18 "The quick brown fox jumps over the lazy dog."; | 17 "The quick brown fox jumps over the lazy dog."; |
(...skipping 19 matching lines...) Expand all Loading... |
38 } | 37 } |
39 | 38 |
40 void testEmptyStringFromCharCodes() { | 39 void testEmptyStringFromCharCodes() { |
41 Expect.stringEquals("", new String.fromCharCodes(<int>[])); | 40 Expect.stringEquals("", new String.fromCharCodes(<int>[])); |
42 } | 41 } |
43 | 42 |
44 void testEmptyStringCharCodes() { | 43 void testEmptyStringCharCodes() { |
45 Expect.listEquals([], "".codeUnits); | 44 Expect.listEquals([], "".codeUnits); |
46 } | 45 } |
47 } | 46 } |
OLD | NEW |