Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix locale test for newer DateTime::Locale (again) #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ Changes for Perl extension DateTime-Tiny

{{$NEXT}}

- Fix tests with DateTime::Locale 1.33 and later

1.07 2018-04-22 11:06:08+02:00 Europe/Oslo

- Bugfix: only match ASCII digits in from_string() method.
Expand Down
5 changes: 3 additions & 2 deletions t/02_main.t
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ SKIP: {
my $dt = $date->DateTime;
isa_ok( $dt, 'DateTime' );
# DateTime::Locale version 1.00 changes "C" to "en-US-POSIX".
my $expected = eval { DateTime::Locale->VERSION(1) } ? "en-US-POSIX" : "C";
is( $dt->locale->id, $expected, '->locale ok' );
# And version 1.33 changes to "en-US".
my %expected = map { $_ => 1 } qw(C en-US-POSIX en-US);
ok( $expected{ $dt->locale->id }, '->locale ok' );
is( $dt->time_zone->name, 'floating', '->timezone ok' );

# Compare accessor results
Expand Down