projects
/
gitmo/Mouse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Add $attr->insertion_order
[gitmo/Mouse.git]
/
t
/
001_mouse
/
007-attributes.t
diff --git
a/t/001_mouse/007-attributes.t
b/t/001_mouse/007-attributes.t
index
39667c1
..
f4c60ee
100644
(file)
--- a/
t/001_mouse/007-attributes.t
+++ b/
t/001_mouse/007-attributes.t
@@
-76,4
+76,8
@@
dies_ok {
Class->write_attr(42);
};
+my @attrs = map { $_->name }
+ sort { $a->insertion_order <=> $b->insertion_order } $object->meta->get_all_attributes;
+is join(' ', @attrs), 'x y z attr', 'insertion_order';
+
done_testing;