Debian Codegraph @

t/16has-dst-changes.t

raw
1 use strict;
2 use warnings;
3
4 use lib 't/lib';
5 use T::RequireDateTime;
6
7 use Test::More;
8
9 use DateTime::TimeZone;
10
11 ok(
12 !DateTime::TimeZone->new( name => 'UTC' )->has_dst_changes,
13 'UTC has no DST changes'
14 );
15 ok(
16 !DateTime::TimeZone->new( name => 'floating' )->has_dst_changes,
17 'floating has no DST changes'
18 );
19 ok(
20 !DateTime::TimeZone->new( name => 'Asia/Thimphu' )->has_dst_changes,
21 'Asia/Thimphu has no DST changes'
22 );
23 ok(
24 DateTime::TimeZone->new( name => 'America/Chicago' )->has_dst_changes,
25 'America/chicago has DST changes'
26 );
27
28 done_testing();