steal more tests from other modules
[p5sagit/Function-Parameters.git] / t / foreign / Method-Signatures / odd_number.t
diff --git a/t/foreign/Method-Signatures/odd_number.t b/t/foreign/Method-Signatures/odd_number.t
new file mode 100644 (file)
index 0000000..254b98a
--- /dev/null
@@ -0,0 +1,16 @@
+#!perl
+
+package Foo;
+use warnings FATAL => 'all';
+use strict;
+
+use Test::More tests => 1;
+use Test::Fatal;
+
+use Function::Parameters qw(:strict);
+
+method foo(:$name, :$value) {
+    return $name, $value;
+}
+
+like exception { Foo->foo(name => 42, value =>) }, qr/Not enough arguments/;