parents returns a list
Jesse Luehrs [Sat, 17 Sep 2011 19:05:01 +0000 (14:05 -0500)]
t/type_constraints/union_types.t

index 58dddfc..1aa151a 100644 (file)
@@ -81,9 +81,9 @@ is(
     'parent of Str|Undef is Item'
 );
 
-is(
-    $Str_or_Undef->parents,
-    find_type_constraint('Item'),
+is_deeply(
+    [$Str_or_Undef->parents],
+    [find_type_constraint('Item')],
     'parents of Str|Undef is Item'
 );