Regenerate test files
[gitmo/Mouse.git] / t / 040_type_constraints / 006_util_type_reloading.t
CommitLineData
b2b106d7 1#!/usr/bin/perl
fde8e43f 2# This is automatically generated by author/import-moose-test.pl.
3# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
4use t::lib::MooseCompat;
b2b106d7 5
6use strict;
7use warnings;
8
9use lib 't/lib', 'lib';
10
fde8e43f 11use Test::More;
b2b106d7 12use Test::Exception;
13
14
b2b106d7 15$SIG{__WARN__} = sub { 0 };
16
17eval { require Foo; };
18ok(!$@, '... loaded Foo successfully') || diag $@;
19
20delete $INC{'Foo.pm'};
21
22eval { require Foo; };
23ok(!$@, '... re-loaded Foo successfully') || diag $@;
24
25eval { require Bar; };
26ok(!$@, '... loaded Bar successfully') || diag $@;
27
28delete $INC{'Bar.pm'};
29
30eval { require Bar; };
fde8e43f 31ok(!$@, '... re-loaded Bar successfully') || diag $@;
32
33done_testing;