Fix the string check on the test
Kent Fredric [Wed, 22 Jun 2011 05:33:07 +0000 (17:33 +1200)]
t/type_constraints/intersection_types.t

index 93a6a82..3a1c21e 100644 (file)
@@ -68,6 +68,6 @@ ok(!defined($RefAndArray->validate([])), '... (ArrayRef & Ref) can accept []');
 ok(defined($RefAndArray->validate(undef)), '... (ArrayRef & Ref) cannot accept undef');
 
 like($RefAndArray->validate(undef), 
-qr/Validation failed for \'ArrayRef\' failed with value undef and Validation failed for \'Ref\' failed with value undef in \(ArrayRef&Ref\)/, 
+qr/Validation failed for \'ArrayRef\' with value undef and Validation failed for \'Ref\' with value undef in \(ArrayRef&Ref\)/,
 '... (ArrayRef & Ref) cannot accept undef');