File: 09version-check.t

package info (click to toggle)
libdatetime-locale-perl 1%3A0.45-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 7,816 kB
  • ctags: 8,274
  • sloc: xml: 22,344; perl: 1,565; makefile: 9
file content (43 lines) | stat: -rw-r--r-- 719 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
use strict;
use warnings;

use Test::More;

eval "use Test::Output";
if ($@) {
    plan skip_all => 'These tests require Test::Output.';
}

plan tests => 1;

{

    package DateTime::Locale::fake;

    use strict;
    use warnings;

    use DateTime::Locale;

    use base 'DateTime::Locale::root';

    sub cldr_version {'0.1'}

    sub _default_date_format_length {'medium'}

    sub _default_time_format_length {'medium'}

    DateTime::Locale->register(
        id          => 'fake',
        en_language => 'Fake',
    );
}

{
    stderr_like(
        sub { DateTime::Locale->load('fake') },
        qr/\Qfrom an older version (0.1)/,
        'loading timezone where olson version is older than current'
    );
}