From b20f7783d7ff7d0b5f2fff8f3b4203dd5ef1879d Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 14 Oct 2012 16:05:32 -0500 Subject: relax this test a bit --- t/stringify.t | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 't') diff --git a/t/stringify.t b/t/stringify.t index c8db5a4..0925c84 100644 --- a/t/stringify.t +++ b/t/stringify.t @@ -17,15 +17,17 @@ doctype 'Person' => { my $person = find_type_constraint('Person'); my $errors = $person->validate({ foo => "bar" }); - is( + like( "$errors", - "invalid value undef for 'id'\n" - . "invalid value undef for 'name'\n" - . "invalid value undef for 'title'\n" - . "extra data found:\n" - . "{\n" - . " 'foo' => 'bar'\n" - . "}", + qr[ + invalid\ value\ undef\ for\ 'id' \n + invalid\ value\ undef\ for\ 'name' \n + invalid\ value\ undef\ for\ 'title' \n + extra\ data\ found: \n + \s* { \s* + 'foo' \s* => \s* 'bar' \s* + \s* } + ]x, "stringified properly" ); } -- cgit v1.2.3