update foreign tests
[p5sagit/Function-Parameters.git] / t / foreign / Method-Signatures / trailing_comma.t
CommitLineData
1a52f2db 1#!perl
2
3# Make sure we allow a trailing comma.
4
5use strict;
6use warnings FATAL => 'all';
7
8use Test::More;
9
10use Function::Parameters qw(:strict);
11
12fun foo($foo, $bar,) {
13 return [$foo, $bar];
14}
15
16is_deeply foo(23, 42), [23, 42];
17
18done_testing;