steal more tests from other modules
[p5sagit/Function-Parameters.git] / t / foreign / Method-Signatures / at_underscore.t
diff --git a/t/foreign/Method-Signatures/at_underscore.t b/t/foreign/Method-Signatures/at_underscore.t
new file mode 100644 (file)
index 0000000..dc540ac
--- /dev/null
@@ -0,0 +1,20 @@
+#!perl
+use strict;
+use warnings FATAL => 'all';
+
+use Test::More;
+
+{
+    package Foo;
+    use Function::Parameters qw(:strict);
+
+    fun foo { return @_ }
+    method bar { return @_ }
+}
+
+is_deeply [Foo::foo()], [];
+is_deeply [Foo::foo(23, 42)], [23, 42];
+is_deeply [Foo->bar()], [];
+is_deeply [Foo->bar(23, 42)], [23, 42];
+
+done_testing;