Compatibility with older Test::More
Toby Inkster
1 year, 7 months ago
24 | 24 | |
25 | 25 | use strict; |
26 | 26 | use warnings; |
27 | use Test::More; | |
27 | use Test::More tests => 5; | |
28 | 28 | |
29 | 29 | BEGIN { |
30 | 30 | package Local::Exporter; |
78 | 78 | [], |
79 | 79 | '-want !-want', |
80 | 80 | ) or &$dump; |
81 | ||
82 | done_testing; |
24 | 24 | |
25 | 25 | use strict; |
26 | 26 | use warnings; |
27 | use Test::More; | |
27 | use Test::More tests => 3; | |
28 | 28 | |
29 | 29 | BEGIN { |
30 | 30 | package Local::Exporter; |
40 | 40 | is_deeply( [ FLAVORS() ], [ qw( CHOCOLATE VANILLA ) ] ); |
41 | 41 | is_deeply( \@FLAVORS, [ qw( chocolate vanilla ) ] ); |
42 | 42 | is_deeply( \%FLAVORS, { qw( 1 chocolate 2 vanilla ) } ); |
43 | ||
44 | done_testing; |