Skip to content

Commit

Permalink
Adding compound test...
Browse files Browse the repository at this point in the history
git-svn-id: file:///Volumes/EnMasse/svnroot/Parse-BNF/trunk@49 a6b267a2-8f62-4c46-b07c-677a4f9229da
  • Loading branch information
jgoff committed Oct 14, 2008
1 parent 59c49a4 commit c110d76
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions t/02.parser.t
@@ -1,4 +1,4 @@
use Test::More tests => 5;
use Test::More tests => 6;

BEGIN
{
Expand Down Expand Up @@ -43,5 +43,12 @@ is_deeply
(
parse( q{<A>::=<b><c>|<d>} ),
{ A => [ [ 'b', 'c' ], [ 'd' ] ] },
q{<A>::=<b><c>}
q{<A>::=<b><c>|<d>}
);

is_deeply
(
parse( qq{<A>::=<b><c>|<d>\n\n<B>::='c'} ),
{ A => [ [ 'b', 'c' ], [ 'd' ] ], B => [ [ q{'c'} ] ] },
q{<A>::=<b><c>|<d>\n\n<B>::='c'}
);

0 comments on commit c110d76

Please sign in to comment.