From: gfx Date: Wed, 7 Oct 2009 12:08:21 +0000 (+0900) Subject: Fix a test X-Git-Tag: 0.37_03~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=92583b3320b6ed8b4673fc94e68af64b3cf106e3;p=gitmo%2FMouse.git Fix a test --- diff --git a/t/800_shikabased/010-isa-or.t b/t/800_shikabased/010-isa-or.t index b912815..c60e45c 100644 --- a/t/800_shikabased/010-isa-or.t +++ b/t/800_shikabased/010-isa-or.t @@ -16,7 +16,7 @@ use Test::More tests => 18; eval { Foo->new( bar => +{} ); }; -like($@, qr/^Attribute \(bar\) does not pass the type constraint because: Validation failed for 'Str\|Baz\|Undef' failed with value HASH\(\w+\)/, 'type constraint and coercion failed') +like($@, qr/^Attribute \(bar\) does not pass the type constraint because: Validation failed for 'Baz\|Str\|Undef' failed with value HASH\(\w+\)/, 'type constraint and coercion failed') or diag "\$@='$@'"; eval { @@ -86,7 +86,7 @@ is $foo->foo, 'Name', 'foo is Name'; } eval { Funk->new( foo => 'aaa' ) }; -like $@, qr/Attribute \(foo\) does not pass the type constraint because: Validation failed for 'Type3\|KLASS\|Undef' failed with value aaa/; +like $@, qr/Attribute \(foo\) does not pass the type constraint because: Validation failed for 'KLASS\|Type3\|Undef' failed with value aaa/; my $k = Funk->new; ok $k, 'got an object 4';