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