We only need local $? if we inline calls to DEMOLISH
[gitmo/Moose.git] / t / test_moose / test_moose_meta_ok.t
CommitLineData
7125b244 1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
a28e50e4 6use Test::Builder::Tester;
7125b244 7use Test::More;
8
28fdde7f 9use Test::Moose;
7125b244 10
11{
12 package Foo;
13 use Moose;
14}
15
16{
17 package Bar;
18}
19
20test_out('ok 1 - ... meta_ok(Foo) passes');
21
22meta_ok('Foo', '... meta_ok(Foo) passes');
23
24test_out ('not ok 2 - ... meta_ok(Bar) fails');
25test_fail (+2);
26
27meta_ok('Bar', '... meta_ok(Bar) fails');
28
29test_test ('meta_ok');
30
a28e50e4 31done_testing;