update tests for moose error message changes
[gitmo/MooseX-Types-Structured.git] / t / 04-map.t
index a1f0a56..ebbf922 100644 (file)
@@ -11,10 +11,10 @@ my $type = Map[ Int, Num ];
 ok($type->assert_valid({ 10 => 10.5 }), "simple Int -> Num mapping");
 
 like( exception { $type->assert_valid({ 10.5 => 10.5 }) },
-    qr{value 10\.5}, "non-Int causes rejection on key");
+    qr{value .*10\.5.*}, "non-Int causes rejection on key");
 
 like( exception { $type->assert_valid({ 10 => "ten and a half" }) },
-    qr{value ten and a half}, "non-Num value causes rejection on value");
+    qr{value .*ten and a half.*}, "non-Num value causes rejection on value");
 
 ok($type->assert_valid({ }), "empty hashref is a valid mapping of any sort");