def test_greedy_some5(self): _ = DummyVar('_') y = LogicVar('y') assert_raises( NoSolution, eval, begin(set_text('aaa'), greedy_some(char(_), _, y), char(_), eoi, y))
def test_greedy_some4(self): _ = DummyVar('_') y = LogicVar('y') eq_( eval( begin(set_text('aaa'), greedy_some(char(_), _, y), eoi, getvalue(y))), ['a', 'a', 'a'])
def test_greedy_some5(self): _ = DummyVar('_') y = LogicVar('y') assert_raises(NoSolution, eval, begin(set_text('aaa'), greedy_some(char(_), _, y), char(_), eoi, y))
def test_greedy_some4(self): _ = DummyVar('_') y = LogicVar('y') eq_(eval(begin(set_text('aaa'), greedy_some(char(_), _, y), eoi, getvalue(y))), ['a', 'a', 'a'])
def test_greedy_some3(self): assert_raises(NoSolution, eval, begin(set_text('aaa'), greedy_some(char('a')), char('a'), eoi))
def test_greedy_some2(self): eq_(eval(begin(set_text('aaa'), greedy_some(char('a')), eoi)), True)
def test_greedy_some3(self): assert_raises( NoSolution, eval, begin(set_text('aaa'), greedy_some(char('a')), char('a'), eoi))