Revert autogenerated tests. Tests should not changed radically.
[gitmo/Mouse.git] / t / 040_type_constraints / failing / 006_util_type_reloading.t
CommitLineData
b2b106d7 1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
6use lib 't/lib', 'lib';
7
9864f0e4 8use Test::More tests => 4;
b2b106d7 9use Test::Exception;
10
11
9864f0e4 12
b2b106d7 13$SIG{__WARN__} = sub { 0 };
14
15eval { require Foo; };
16ok(!$@, '... loaded Foo successfully') || diag $@;
17
18delete $INC{'Foo.pm'};
19
20eval { require Foo; };
21ok(!$@, '... re-loaded Foo successfully') || diag $@;
22
23eval { require Bar; };
24ok(!$@, '... loaded Bar successfully') || diag $@;
25
26delete $INC{'Bar.pm'};
27
28eval { require Bar; };
9864f0e4 29ok(!$@, '... re-loaded Bar successfully') || diag $@;