typiconman / Perl-Lingua-CU

A Perl module for working with Church Slavonic text
Other
11 stars 3 forks source link

make test Error #5

Closed igorekRnd closed 5 years ago

igorekRnd commented 8 years ago

Do not pass the tests before installing the module. I run make test command and displays the following error:

#   Failed test 'Church Slavonic collation works'
#   at t/Lingua-CU.t line 62.
#     Structures begin differing at:
#          $got->[0] = 'бцⷣе
#     '
#     $expected->[0] = 'а҆
#     '
# Church Slavonic collation works
# Looks like you failed 1 test of 12.

I have installed the latest version of the module Unicode :: Collate.

$ perl -e 'use Unicode::Collate; $Collator = Unicode::Collate->new(); print $Collator->UCA_Version()."\n"'
> 30

As a workaround, I commented out the line 62 in the test file and reduced the number of test cases to 11: file t/Lingua-CU.t:

-use Test::More tests => 12;
+use Test::More tests => 11;
 -is_deeply (\@output, \@words, "Church Slavonic collation works");
+#is_deeply (\@output, \@words, "Church Slavonic collation works");
typiconman commented 8 years ago

Confirmed. Lingua::CU::Collate needs to be rewritten to automatically build DUCET tailoring at install based on the installed version of Unicode::Collate.

typiconman commented 6 years ago

I think that this issue is now fixed.

pantlmn commented 5 years ago

I get similar error:

#   Failed test 'Church Slavonic collation works'
#   at t/Lingua-CU.t line 62.
#     Structures begin differing at:
#          $got->[0] = 'є҃
#     '
#     $expected->[0] = 'а҆
#     '
# Church Slavonic collation works
# Looks like you failed 1 test of 12.
typiconman commented 5 years ago

I cannot reproduce the error.

Which version of Unicode::Collate are you using? E.g.,

perl -e "use Unicode::Collate; print Unicode::Collate->UCA_Version()"

pantlmn commented 5 years ago

Version 36. Maybe I installed it incorrectly, I'll try once again.

pantlmn commented 5 years ago

I made once again

perl Makefile.PL
make
make test
make install

No errors now, All tests successful.