|
|
b66aba |
From 4100d95d3af754ac17c8d04c5fb76c726c78c3ee Mon Sep 17 00:00:00 2001
|
|
|
b66aba |
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
|
|
b66aba |
Date: Mon, 10 Jul 2017 17:47:47 +0200
|
|
|
b66aba |
Subject: [PATCH] Adjust tests to time zone data 2017b
|
|
|
b66aba |
|
|
|
b66aba |
Africa/Kinshasa renamed to Africa/Lagos in upstream 1.74.
|
|
|
b66aba |
Third Chille time zone America/Punta_Arenas added in upstream 2.10.
|
|
|
b66aba |
---
|
|
|
b66aba |
t/04local.t | 6 +++---
|
|
|
b66aba |
t/15catalog.t | 6 +++---
|
|
|
b66aba |
2 files changed, 6 insertions(+), 6 deletions(-)
|
|
|
b66aba |
|
|
|
b66aba |
diff --git a/t/04local.t b/t/04local.t
|
|
|
b66aba |
index 4969f86..53ffabc 100644
|
|
|
b66aba |
--- a/t/04local.t
|
|
|
b66aba |
+++ b/t/04local.t
|
|
|
b66aba |
@@ -73,12 +73,12 @@ local $ENV{TZ} = undef;
|
|
|
b66aba |
}
|
|
|
b66aba |
|
|
|
b66aba |
{
|
|
|
b66aba |
- local $ENV{TZ} = 'Africa/Kinshasa';
|
|
|
b66aba |
+ local $ENV{TZ} = 'Africa/Lagos';
|
|
|
b66aba |
|
|
|
b66aba |
my $tz = DateTime::TimeZone::Local::Unix->FromEnv();
|
|
|
b66aba |
is(
|
|
|
b66aba |
- $tz->name(), 'Africa/Kinshasa',
|
|
|
b66aba |
- 'tz object name() is Africa::Kinshasa'
|
|
|
b66aba |
+ $tz->name(), 'Africa/Lagos',
|
|
|
b66aba |
+ 'tz object name() is Africa::Lagos'
|
|
|
b66aba |
);
|
|
|
b66aba |
|
|
|
b66aba |
local $ENV{TZ} = 0;
|
|
|
b66aba |
diff --git a/t/15catalog.t b/t/15catalog.t
|
|
|
b66aba |
index 2246253..0102898 100644
|
|
|
b66aba |
--- a/t/15catalog.t
|
|
|
b66aba |
+++ b/t/15catalog.t
|
|
|
b66aba |
@@ -97,11 +97,11 @@ use DateTime::TimeZone;
|
|
|
b66aba |
|
|
|
b66aba |
{
|
|
|
b66aba |
my @zones = DateTime::TimeZone->names_in_country('cl');
|
|
|
b66aba |
- is( @zones, 2, 'two zones for Chile' );
|
|
|
b66aba |
+ is( @zones, 3, 'two zones for Chile' );
|
|
|
b66aba |
is_deeply(
|
|
|
b66aba |
[ sort @zones ],
|
|
|
b66aba |
- [ 'America/Santiago', 'Pacific/Easter' ],
|
|
|
b66aba |
- 'zones for Chile are America/Santiago and Pacific/Easter'
|
|
|
b66aba |
+ [ 'America/Punta_Arenas', 'America/Santiago', 'Pacific/Easter' ],
|
|
|
b66aba |
+ 'zones for Chile are America/Punta_Arenas, America/Santiago, and Pacific/Easter'
|
|
|
b66aba |
);
|
|
|
b66aba |
}
|
|
|
b66aba |
|
|
|
b66aba |
--
|
|
|
b66aba |
1.8.3.1
|
|
|
b66aba |
|