| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |