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

Side by Side Diff: utils/tests/string_encoding/utf32_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("utf32_tests"); 6 library utf32_tests;
7 #import("dunit.dart"); 7 import 'dunit.dart';
8 #import("../../string_encoding/unicode_core.dart"); 8 import '../../string_encoding/unicode_core.dart';
9 #import("../../string_encoding/utf32.dart"); 9 import '../../string_encoding/utf32.dart';
10 10
11 void main() { 11 void main() {
12 TestSuite suite = new TestSuite(); 12 TestSuite suite = new TestSuite();
13 suite.registerTestClass(new Utf32Tests()); 13 suite.registerTestClass(new Utf32Tests());
14 suite.run(); 14 suite.run();
15 } 15 }
16 16
17 class Utf32Tests extends TestClass { 17 class Utf32Tests extends TestClass {
18 static const String testKoreanCharSubset = """ 18 static const String testKoreanCharSubset = """
19 가각갂갃간갅갆갇갈갉갊갋갌갍갎갏감갑값갓갔강갖갗갘같갚갛 19 가각갂갃간갅갆갇갈갉갊갋갌갍갎갏감갑값갓갔강갖갗갘같갚갛
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 // specify types 179 // specify types
180 Expect.equals(44032, (new List<int> 180 Expect.equals(44032, (new List<int>
181 .from(decodeUtf32beAsIterable(testKoreanCharSubsetUtf32beBom)))[0]); 181 .from(decodeUtf32beAsIterable(testKoreanCharSubsetUtf32beBom)))[0]);
182 Expect.equals(44032, (new List<int> 182 Expect.equals(44032, (new List<int>
183 .from(decodeUtf32leAsIterable(testKoreanCharSubsetUtf32le)))[0]); 183 .from(decodeUtf32leAsIterable(testKoreanCharSubsetUtf32le)))[0]);
184 Expect.equals(UNICODE_BOM, (new List<int> 184 Expect.equals(UNICODE_BOM, (new List<int>
185 .from(decodeUtf32beAsIterable(testKoreanCharSubsetUtf32beBom, 185 .from(decodeUtf32beAsIterable(testKoreanCharSubsetUtf32beBom,
186 stripBom: false)))[0]); 186 stripBom: false)))[0]);
187 } 187 }
188 } 188 }
OLDNEW
« no previous file with comments | « utils/tests/string_encoding/utf16_test.dart ('k') | utils/tests/string_encoding/utf8_benchmarks.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698