diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-07-19 02:02:33 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-07-19 02:02:33 -0400 |
commit | be8cfb28cb18499cf6ddfff9eff256d08537dd18 (patch) | |
tree | 375f7525e6ee6f39d1ed952edb4be17c88c9a0f6 /t/basic.t | |
parent | 56de12a2999763ca14aefdf4ac1af1d527ccbc71 (diff) | |
download | parse-keyword-be8cfb28cb18499cf6ddfff9eff256d08537dd18.tar.gz parse-keyword-be8cfb28cb18499cf6ddfff9eff256d08537dd18.zip |
add some (failing) tests
Diffstat (limited to 't/basic.t')
-rw-r--r-- | t/basic.t | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/t/basic.t b/t/basic.t new file mode 100644 index 0000000..119e586 --- /dev/null +++ b/t/basic.t @@ -0,0 +1,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; |