diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-07-21 16:50:34 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-07-21 16:50:34 -0400 |
commit | 597610ad1c915a5b004148fdb3151b0cec976790 (patch) | |
tree | 9e3e002a3b536ea943d73b51c8318d08f3f6ecb9 /t/fun/package.t | |
parent | 336e491e532144d1c8a6e367409149e8d084fa1d (diff) | |
download | parse-keyword-597610ad1c915a5b004148fdb3151b0cec976790.tar.gz parse-keyword-597610ad1c915a5b004148fdb3151b0cec976790.zip |
add tests for Fun
Diffstat (limited to 't/fun/package.t')
-rw-r--r-- | t/fun/package.t | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/t/fun/package.t b/t/fun/package.t new file mode 100644 index 0000000..52a2266 --- /dev/null +++ b/t/fun/package.t @@ -0,0 +1,17 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use Test::More; +use lib 't/fun/lib'; + +use Fun; + +fun Foo::foo ($x, $y) { + $x + $y; +} + +ok(!main->can('foo')); +ok(Foo->can('foo')); +is(Foo::foo(1, 2), 3); + +done_testing; |