diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-07-22 18:33:38 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-07-22 18:33:38 -0400 |
commit | 485f6c2b0f3c69c94458b67c797e4d4eb63c6c3e (patch) | |
tree | 2a654e44a90f40d0d514c3d6005155281a42a4da /t | |
parent | 0cdc63eb4e5b7357b40ee7b43b1299208c375e10 (diff) | |
download | parse-keyword-485f6c2b0f3c69c94458b67c797e4d4eb63c6c3e.tar.gz parse-keyword-485f6c2b0f3c69c94458b67c797e4d4eb63c6c3e.zip |
work around bugs in lex_next_chunk
Diffstat (limited to 't')
-rw-r--r-- | t/peek.t | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/t/peek.t b/t/peek.t new file mode 100644 index 0000000..6d2d989 --- /dev/null +++ b/t/peek.t @@ -0,0 +1,22 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use Test::More; + +{ + package Parser; + + use Parse::Keyword { foo => \&parse_foo }; + + sub foo {} + sub parse_foo { + lex_peek(99999999); + return sub {}; + } + + ::is_deeply([ foo ], []); +} + +is(__LINE__, 20); + +done_testing; |