summaryrefslogtreecommitdiffstats
path: root/t/basic.t
blob: 119e5868ab3bc030250045df032fbf974dd84b42 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;

{
    package Foo;

    use Parse::Keyword { bar => \&bar_parser };

    sub bar { @_ }
    sub bar_parser {
        return sub { return (1, 2, 3) }
    }

    ::is_deeply([bar], [1, 2, 3]);
}

done_testing;