update foreign tests
[p5sagit/Function-Parameters.git] / t / foreign / Method-Signatures / odd_number.t
CommitLineData
98e6239b 1#!perl
2
98e6239b 3use warnings FATAL => 'all';
4use strict;
5
6use Test::More tests => 1;
7use Test::Fatal;
8
9use Function::Parameters qw(:strict);
10
1a52f2db 11package Foo {
12 method foo(:$name, :$value) {
13 return $name, $value;
14 }
98e6239b 15}
16
1a52f2db 17like exception { Foo->foo(name => 42, value =>) }, qr/Not enough arguments.+ line 17/;