6 use Test::More tests => 8;
9 use_ok('MooseX::Storage');
20 has 'number' => ( is => 'ro', isa => 'Int', default => 42 );
21 has 'string' => ( is => 'ro', isa => 'Str', default => "true" );
22 has 'boolean' => ( is => 'ro', isa => 'Bool', default => 1 );
31 isa_ok( $foo, 'Foo' );
33 is($foo->boolean, 0, '... got the right boolean value');
43 '... got the right frozen class'
48 my $foo = Foo->unpack(
56 isa_ok( $foo, 'Foo' );
58 is( $foo->number, 0, '... got the right number' );
59 is( $foo->string, '', '... got the right string' );
60 ok( !$foo->boolean, '... got the right boolean' );