projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
d61b268
)
Test parent of ArrayRef|HashRef
Dave Rolsky [Sat, 17 Sep 2011 14:38:11 +0000 (09:38 -0500)]
t/type_constraints/union_types.t
patch
|
blob
|
blame
|
history
diff --git
a/t/type_constraints/union_types.t
b/t/type_constraints/union_types.t
index
4fe30d8
..
9e5385b
100644
(file)
--- a/
t/type_constraints/union_types.t
+++ b/
t/type_constraints/union_types.t
@@
-151,4
+151,10
@@
is(
'... (ArrayRef | HashRef) cannot accept Numbers'
);
+is(
+ $ArrayRef_or_HashRef->parent,
+ find_type_constraint('Ref'),
+ 'parent of ArrayRef|HashRef is Ref'
+);
+
done_testing;