OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 import 'package:expect/expect.dart'; | 5 import 'package:expect/expect.dart'; |
6 | 6 |
7 void item(String from, String upper, String lower) { | 7 void item(String from, String upper, String lower) { |
8 Expect.equals(from.toUpperCase(), upper); | 8 Expect.equals(from.toUpperCase(), upper); |
9 Expect.equals(from.toLowerCase(), lower); | 9 Expect.equals(from.toLowerCase(), lower); |
10 var strings = ["", "a", "A", ".", "\u{10400}"]; | 10 var strings = ["", "a", "A", ".", "\u{10400}"]; |
11 for (String prefix in strings) { | 11 for (String prefix in strings) { |
(...skipping 18 matching lines...) Expand all Loading... |
30 itemUnchanged("."); | 30 itemUnchanged("."); |
31 itemUnchanged("\u2603"); | 31 itemUnchanged("\u2603"); |
32 itemUnchanged("\u{1f639}"); | 32 itemUnchanged("\u{1f639}"); |
33 item("\u{10400}", "\u{10400}", "\u{10428}"); | 33 item("\u{10400}", "\u{10400}", "\u{10428}"); |
34 item("\u{10428}", "\u{10400}", "\u{10428}"); | 34 item("\u{10428}", "\u{10400}", "\u{10428}"); |
35 item("\u0149", "\u02bcN", "\u0149"); | 35 item("\u0149", "\u02bcN", "\u0149"); |
36 // That's Alpha-Iota in the upper case position, not AI. | 36 // That's Alpha-Iota in the upper case position, not AI. |
37 // See https://en.wikipedia.org/wiki/Iota_subscript. | 37 // See https://en.wikipedia.org/wiki/Iota_subscript. |
38 item("ᾳ", "ΑΙ", "ᾳ"); | 38 item("ᾳ", "ΑΙ", "ᾳ"); |
39 } | 39 } |
OLD | NEW |