Skip to content

Commit

Permalink
Test collation with 'A' vs 'a'
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Oct 11, 2017
1 parent 906d96e commit 5091bdd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S32-str/Collation.t
@@ -1,7 +1,7 @@
# May need review for v6.d. [6.d-REVIEW]
use experimental :collation;
use Test;
plan 14;
plan 15;
{
my $*COLLATION = Collation.new;
$*COLLATION.set(:!tertiary, :!quaternary);
Expand Down Expand Up @@ -59,4 +59,11 @@ subtest {
$*COLLATION.set(secondary => -1, tertiary => -1);
is-deeply <a á A Á ó ø 1 z t ṫ>.collate, <1 Á á A a ø ó ṫ t z>, '!secondary, !tertiary; <a á A Á ó ø 1 z t ṫ>.collate';
}

{ # RT #132216
(my $*COLLATION = Collation.new).set: :!tertiary, :!quaternary;
is-deeply "a" coll "A", Same,
':!tertiary, :!quaternary collation puts "a" and "A" as Same';
}

# TODO add test with "\c[woman facepalming]", "\c[man facepalming]"

0 comments on commit 5091bdd

Please sign in to comment.