diff options
author | Karl Williamson <khw@cpan.org> | 2016-05-21 11:35:10 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2016-05-24 10:26:28 -0600 |
commit | 4e615abd31bcd0bb8f321ae4687e5aef1a8aa391 (patch) | |
tree | 7ad620565f85271083ff1c19c7bde7040610a208 /lib/locale.t | |
parent | f17bc913886cd59ab68fde7bec9131dbb90186a0 (diff) | |
download | perl-4e615abd31bcd0bb8f321ae4687e5aef1a8aa391.tar.gz |
perllocale: Document NUL collation handling
And add a TODO test, because this shortly will be improved upon
Diffstat (limited to 'lib/locale.t')
-rw-r--r-- | lib/locale.t | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/locale.t b/lib/locale.t index 1e99b6e50e..ddb5d795d9 100644 --- a/lib/locale.t +++ b/lib/locale.t @@ -1735,6 +1735,20 @@ foreach my $Locale (@Locale) { last; } } + + use locale; + + ++$locales_test_number; + $test_names{$locales_test_number} + = 'TODO Skip in locales where \001 has primary sorting weight; ' + . 'otherwise verify that \0 doesn\'t have primary sorting weight'; + if ("a\001c" lt "ab") { + report_result($Locale, $locales_test_number, 1); + } + else { + my $ok = "ab" lt "a\0c"; + report_result($Locale, $locales_test_number, $ok); + } } my $ok1; |