X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F020_basic_yaml.t;h=ab37909d0b3bc799af2a13548047c18ec5503845;hb=7aac8ce996cd654b8a8eeb159b54a1853a079938;hp=36ee6053a79d3609529a86111607e347136f1f60;hpb=72a40e08957c306803a6aa0049add5a174c246be;p=gitmo%2FMooseX-Storage.git diff --git a/t/020_basic_yaml.t b/t/020_basic_yaml.t index 36ee605..ab37909 100644 --- a/t/020_basic_yaml.t +++ b/t/020_basic_yaml.t @@ -38,11 +38,11 @@ BEGIN { object => Foo->new( number => 2 ), ); isa_ok( $foo, 'Foo' ); - + my $yaml = $foo->freeze; - - yaml_string_ok($yaml, '... we got valid YAML out of it'); - + + yaml_string_ok( $yaml, '... we got valid YAML out of it' ); + is( $yaml, q{--- @@ -76,12 +76,14 @@ object: number: 2 string: foo }, - '... got the same YAML'); - + '... got the same YAML' + ); + } { - my $foo = Foo->thaw(q{--- + my $foo = Foo->thaw( + q{--- __CLASS__: Foo array: - 1 @@ -111,7 +113,8 @@ object: __CLASS__: Foo number: 2 string: foo -}); +} + ); isa_ok( $foo, 'Foo' ); is( $foo->number, 10, '... got the right number' );