This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
APItest:locale.t Fix ALT_DIGITS test
authorKarl Williamson <khw@cpan.org>
Thu, 22 Feb 2018 21:21:23 +0000 (14:21 -0700)
committerKarl Williamson <khw@cpan.org>
Thu, 22 Feb 2018 21:28:56 +0000 (14:28 -0700)
The value returned for ALT_DIGITS may vary by locale and platform.
Change the  test to only look for a result, as opposed to a particular
result.

This should fix https://rt.perl.org/Ticket/Display.html?id=132879
but I'll leave the ticket open until that is verified.

ext/XS-APItest/t/locale.t

index 064627d..342f673 100644 (file)
@@ -53,7 +53,7 @@ my %correct_C_responses = (
                             ABMON_7 => 'Jul',
                             ABMON_8 => 'Aug',
                             ABMON_9 => 'Sep',
-                            ALT_DIGITS => '',
+                            ALT_DIGITS => undef,
                             AM_STR => 'AM',
                             CODESET => undef,
                             CRNCYSTR => undef,