blob: d3ad7606dc6a9bc299adba360141cf504499a626 (
plain)
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
|
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();
|