Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 unicode_tests; | 5 library unicode_tests; |
| 6 | 6 |
| 7 // Google favorite: "Îñţérñåţîöñåļîžåţîờñ". | 7 // Google favorite: "Îñţérñåţîöñåļîžåţîờñ". |
| 8 const INTER_BYTES = const [0xc3, 0x8e, 0xc3, 0xb1, 0xc5, 0xa3, 0xc3, 0xa9, 0x72, | 8 const INTER_BYTES = const [0xc3, 0x8e, 0xc3, 0xb1, 0xc5, 0xa3, 0xc3, 0xa9, 0x72, |
| 9 0xc3, 0xb1, 0xc3, 0xa5, 0xc5, 0xa3, 0xc3, 0xae, 0xc3, | 9 0xc3, 0xb1, 0xc3, 0xa5, 0xc5, 0xa3, 0xc3, 0xae, 0xc3, |
| 10 0xb6, 0xc3, 0xb1, 0xc3, 0xa5, 0xc4, 0xbc, 0xc3, 0xae, | 10 0xb6, 0xc3, 0xb1, 0xc3, 0xa5, 0xc4, 0xbc, 0xc3, 0xae, |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 27 // "िसवा अणामालै", that is "Siva Annamalai" in Devanagari. | 27 // "िसवा अणामालै", that is "Siva Annamalai" in Devanagari. |
| 28 const SIVA_BYTES2 = const [0xe0, 0xa4, 0xbf, 0xe0, 0xa4, 0xb8, 0xe0, 0xa4, 0xb5, | 28 const SIVA_BYTES2 = const [0xe0, 0xa4, 0xbf, 0xe0, 0xa4, 0xb8, 0xe0, 0xa4, 0xb5, |
| 29 0xe0, 0xa4, 0xbe, 0x20, 0xe0, 0xa4, 0x85, 0xe0, 0xa4, | 29 0xe0, 0xa4, 0xbe, 0x20, 0xe0, 0xa4, 0x85, 0xe0, 0xa4, |
| 30 0xa3, 0xe0, 0xa4, 0xbe, 0xe0, 0xa4, 0xae, 0xe0, 0xa4, | 30 0xa3, 0xe0, 0xa4, 0xbe, 0xe0, 0xa4, 0xae, 0xe0, 0xa4, |
| 31 0xbe, 0xe0, 0xa4, 0xb2, 0xe0, 0xa5, 0x88]; | 31 0xbe, 0xe0, 0xa4, 0xb2, 0xe0, 0xa5, 0x88]; |
| 32 const SIVA_STRING2 = "िसवा अणामालै"; | 32 const SIVA_STRING2 = "िसवा अणामालै"; |
| 33 | 33 |
| 34 // DESERET CAPITAL LETTER BEE, unicode 0x10412(0xD801+0xDC12) | 34 // DESERET CAPITAL LETTER BEE, unicode 0x10412(0xD801+0xDC12) |
| 35 // UTF-8: F0 90 90 92 | 35 // UTF-8: F0 90 90 92 |
| 36 const BEE_BYTES = const [0xf0, 0x90, 0x90, 0x92]; | 36 const BEE_BYTES = const [0xf0, 0x90, 0x90, 0x92]; |
| 37 const BEE_STRING = "𐐒"; | 37 //const BEE_STRING = "𐐒"; |
|
regis
2013/08/13 16:51:35
Left over comment?
Lasse Reichstein Nielsen
2013/08/14 07:31:38
Yes. Well spotted.
Probably forgot to save after r
| |
| 38 const BEE_STRING = "\u{10412}"; | |
| 38 | 39 |
| 39 const DIGIT_BYTES = const [ 0x35 ]; | 40 const DIGIT_BYTES = const [ 0x35 ]; |
| 40 const DIGIT_STRING = "5"; | 41 const DIGIT_STRING = "5"; |
| 41 | 42 |
| 42 const ASCII_BYTES = const [ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, | 43 const ASCII_BYTES = const [ 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, |
| 43 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, | 44 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, |
| 44 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, | 45 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, |
| 45 0x79, 0x7A ]; | 46 0x79, 0x7A ]; |
| 46 const ASCII_STRING = "abcdefghijklmnopqrstuvwxyz"; | 47 const ASCII_STRING = "abcdefghijklmnopqrstuvwxyz"; |
| 47 | 48 |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 67 for (int i = 0; i < 100; i++) { | 68 for (int i = 0; i < 100; i++) { |
| 68 longBytes.addAll(bytes); | 69 longBytes.addAll(bytes); |
| 69 longString += string; | 70 longString += string; |
| 70 } | 71 } |
| 71 return [test, [longBytes, longString]]; | 72 return [test, [longBytes, longString]]; |
| 72 })); | 73 })); |
| 73 return tests; | 74 return tests; |
| 74 } | 75 } |
| 75 | 76 |
| 76 final List UNICODE_TESTS = _expandTestPairs(); | 77 final List UNICODE_TESTS = _expandTestPairs(); |
| OLD | NEW |