# File test/src/simple_parser_test.rb, line 121 def testLookeaheadUsedInPlusCanBeUsedByNot parser = (char('a') >> str('abc') | char('a') >> str('bcd')).lookahead(2) # assertError('abc', '"abc" expected or "bcd" expected', parser, 1) assertError('abc', '"abc" expected', parser, 1) assertParser('abc', nil, parser.not) end