diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-06-25 04:47:55 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-06-25 04:47:55 +0000 |
commit | 7e7ddbe33ca34359d711aee1e0ddebaeb40c2a18 (patch) | |
tree | 2a03e101e7b0302f5dcde62ed415a415ecca041d /t/014-weird-constants.t | |
download | Class-Load-tarball-7e7ddbe33ca34359d711aee1e0ddebaeb40c2a18.tar.gz |
Class-Load-0.23HEADClass-Load-0.23master
Diffstat (limited to 't/014-weird-constants.t')
-rw-r--r-- | t/014-weird-constants.t | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/t/014-weird-constants.t b/t/014-weird-constants.t new file mode 100644 index 0000000..d3ad760 --- /dev/null +++ b/t/014-weird-constants.t @@ -0,0 +1,34 @@ +use strict; +use warnings; + +use Test::Fatal; +use Test::More 0.88; + +use lib 't/lib'; +use Test::Class::Load ':all'; + +{ + package ConstantISA; + + use constant ISA => 1; +} + +is( + exception { is_class_loaded('ConstantISA') }, + undef, + 'no error checking whether class with ISA constant is loaded' +); + +{ + package ConstantVERSION; + + use constant VERSION => 1; +} + +is( + exception { is_class_loaded('ConstantVERSION') }, + undef, + 'no error checking whether class with VERSION constant is loaded' +); + +done_testing(); |