Rename a wrong-named test file
[gitmo/Mouse.git] / t / 900_bug / 006_RT69939.t
CommitLineData
84787870 1#!perl -w
2
3package Foo;
4use Mouse;
5
6has bar => (
7 is => 'rw',
8
9 trigger => sub {
10 eval 'BEGIN{ die }';
11 },
12 default => sub {
13 eval 'BEGIN{ die }';
14 return 42;
15 },
16);
17
18sub BUILDARGS {
19 eval 'BEGIN{ die }';
20 return {};
21}
22
23sub BUILD {
24 eval 'BEGIN{ die }';
25}
26
27package main;
28
29use Test::More tests => 3;
30
31$@ = '(ERRSV)';
32
33my $foo = Foo->new;
34isa_ok $foo, 'Foo';
35is $foo->bar, 42;
36$foo->bar(100);
37is $foo->bar, 100;
38note("\$@=$@");