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

Side by Side Diff: pkg/utf/test/utf32_test.dart

Issue 418433003: pkg/utf: fixed layout, added todos, updated docs and homepage pubspec links (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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
« no previous file with comments | « pkg/utf/test/utf16_test.dart ('k') | pkg/utf/test/utf82_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library utf.utf32_test;
6
5 import 'package:expect/expect.dart'; 7 import 'package:expect/expect.dart';
6 import 'package:utf/utf.dart'; 8 import 'package:utf/utf.dart';
7 9
8 const String testKoreanCharSubset = """ 10 const String testKoreanCharSubset = """
9 가각갂갃간갅갆갇갈갉갊갋갌갍갎갏감갑값갓갔강갖갗갘같갚갛 11 가각갂갃간갅갆갇갈갉갊갋갌갍갎갏감갑값갓갔강갖갗갘같갚갛
10 개객갞갟갠갡갢갣갤갥갦갧갨갩갪갫갬갭갮갯갰갱갲갳갴갵갶갷 12 개객갞갟갠갡갢갣갤갥갦갧갨갩갪갫갬갭갮갯갰갱갲갳갴갵갶갷
11 갸갹갺갻갼갽갾갿걀걁걂걃걄걅걆걇걈걉걊걋걌걍걎걏걐걑걒걓"""; 13 갸갹갺갻갼갽갾갿걀걁걂걃걄걅걆걇걈걉걊걋걌걍걎걏걐걑걒걓""";
12 14
13 const String testHanTwice = "二"; 15 const String testHanTwice = "二";
14 16
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // specify types 170 // specify types
169 Expect.equals(44032, (new List<int> 171 Expect.equals(44032, (new List<int>
170 .from(decodeUtf32beAsIterable(testKoreanCharSubsetUtf32beBom)))[0]); 172 .from(decodeUtf32beAsIterable(testKoreanCharSubsetUtf32beBom)))[0]);
171 Expect.equals(44032, (new List<int> 173 Expect.equals(44032, (new List<int>
172 .from(decodeUtf32leAsIterable(testKoreanCharSubsetUtf32le)))[0]); 174 .from(decodeUtf32leAsIterable(testKoreanCharSubsetUtf32le)))[0]);
173 bool stripBom = false; 175 bool stripBom = false;
174 Expect.equals(UNICODE_BOM, (new List<int> 176 Expect.equals(UNICODE_BOM, (new List<int>
175 .from(decodeUtf32beAsIterable(testKoreanCharSubsetUtf32beBom, 177 .from(decodeUtf32beAsIterable(testKoreanCharSubsetUtf32beBom,
176 0, null, stripBom)))[0]); 178 0, null, stripBom)))[0]);
177 } 179 }
OLDNEW
« no previous file with comments | « pkg/utf/test/utf16_test.dart ('k') | pkg/utf/test/utf82_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698