Commit | Line | Data |
fde8e43f |
1 | #!/usr/bin/perl |
2 | # This is automatically generated by author/import-moose-test.pl. |
3 | # DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!! |
4 | use t::lib::MooseCompat; |
5 | |
6 | use strict; |
7 | use warnings; |
8 | |
9 | use Test::Builder::Tester; |
10 | use Test::More; |
11 | |
12 | BEGIN { |
13 | use_ok('Test::Mouse'); |
14 | } |
15 | |
16 | { |
17 | package Foo; |
18 | use Mouse; |
19 | } |
20 | |
21 | { |
22 | package Bar; |
23 | use Mouse; |
24 | } |
25 | |
26 | package main; |
27 | |
28 | test_out("ok 1", "not ok 2"); |
29 | test_fail(+2); |
30 | my $ret = with_immutable { |
31 | ok(Foo->meta->is_mutable); |
32 | } qw(Foo); |
33 | test_test('with_immutable failure'); |
34 | ok(!$ret, "one of our tests failed"); |
35 | |
36 | test_out("ok 1", "ok 2"); |
37 | $ret = with_immutable { |
38 | ok(Bar->meta->find_method_by_name('new')); |
39 | } qw(Bar); |
40 | test_test('with_immutable success'); |
41 | ok($ret, "all tests succeeded"); |
42 | |
43 | done_testing; |