- depend to Scalar::Util when perl5.6.x
[gitmo/Mouse.git] / t / 800_shikabased / 011-util-linear-isa.t
diff --git a/t/800_shikabased/011-util-linear-isa.t b/t/800_shikabased/011-util-linear-isa.t
new file mode 100644 (file)
index 0000000..2d2663d
--- /dev/null
@@ -0,0 +1,18 @@
+use strict;
+use warnings;
+use Mouse::Util 'get_linear_isa';
+use Test::More tests => 2;
+
+{
+    package Parent;
+}
+
+{
+    package Child;
+    use Mouse;
+    extends 'Parent';
+}
+
+is_deeply get_linear_isa('Parent'), [ 'Parent' ];
+is_deeply get_linear_isa('Child'),  [ 'Child', 'Parent' ];
+