{
package HasConstants;
- use constant FOO => 1;
- use constant BAR => [];
- use constant BAZ => {};
+ use constant FOO => 1;
+ use constant BAR => [];
+ use constant BAZ => {};
+ use constant UNDEF => undef;
sub quux {1}
sub thing {1}
is_deeply(
[ sort $HC->get_method_list ],
- [qw( BAR BAZ FOO quux thing )],
+ [qw( BAR BAZ FOO UNDEF quux thing )],
'get_method_list handles constants properly'
);
is_deeply(
[ sort map { $_->name } $HC->_get_local_methods ],
- [qw( BAR BAZ FOO quux thing )],
+ [qw( BAR BAZ FOO UNDEF quux thing )],
'_get_local_methods handles constants properly'
);