All tests pass.
This commit is contained in:
parent
4199ad8758
commit
8c44d583e6
2 changed files with 39 additions and 6 deletions
|
|
@ -334,11 +334,12 @@ subtest "epsilon" => sub {
|
|||
};
|
||||
|
||||
|
||||
TODO: {
|
||||
local $TODO = "not implemented";
|
||||
subtest "attr_bool" => sub {
|
||||
fail;
|
||||
}
|
||||
subtest "attr_bool" => sub {
|
||||
my $parser = hammer::attr_bool(hammer::many1(hammer::in('ab')),
|
||||
sub { my ($a, $b) = @{+shift}; $a eq $b });
|
||||
check_parse_eq($parser, "aa", ['a','a']);
|
||||
check_parse_eq($parser, "bb", ['b','b']);
|
||||
check_parse_failed($parser, "ab");
|
||||
};
|
||||
|
||||
subtest "and" => sub {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue