def test_lazy_any5(self): _ = DummyVar('_') y = LogicVar('y') eq_( eval( begin(set_text('aaa'), lazy_any(char(_), _, y), char(_), eoi, getvalue(y))), ['a', 'a'])
def test_lazy_any4(self): _ = DummyVar('_') y = LogicVar('y') eq_(eval(begin(set_text('aaa'), lazy_any(char(_), _, y), eoi, getvalue(y))), ['a', 'a', 'a'])
def test_lazy_any3(self): eq_(eval(begin(set_text('aaa'), lazy_any(char('a')), char('a'), eoi)), True)
def test_lazy_any1(self): eq_(eval(begin(set_text('aaa'), lazy_any(char('a')))), True)