def test_greedy_seplist5(self): _ = DummyVar('_') y = LogicVar('y') assert_raises( NoSolution, eval, begin(set_text('a,a,a'), greedy_seplist(char(_), char(','), _, y), char(_), eoi, getvalue(y)))
def test_greedy_seplist4(self): _ = DummyVar('_') y = LogicVar('y') eq_( eval( begin(set_text('a,a,a'), greedy_seplist(char(_), char(','), _, y), eoi, getvalue(y))), ['a', 'a', 'a'])
def test_greedy_seplist5(self): _ = DummyVar('_') y = LogicVar('y') assert_raises(NoSolution, eval, begin(set_text('a,a,a'), greedy_seplist(char(_), char(','), _, y), char(_), eoi, getvalue(y)))
def test_greedy_seplist4(self): _ = DummyVar('_') y = LogicVar('y') eq_(eval(begin(set_text('a,a,a'), greedy_seplist(char(_), char(','), _, y), eoi, getvalue(y))), ['a', 'a', 'a'])
def test_greedy_seplist3(self): assert_raises(NoSolution, eval, begin(set_text('a,a,a'), greedy_seplist(char('a'), char(',')), char('a'), eoi))
def test_greedy_seplist2(self): eq_(eval(begin(set_text('a,a,a'), greedy_seplist(char('a'), char(',')), eoi)), True)
def test_greedy_seplist3(self): assert_raises( NoSolution, eval, begin(set_text('a,a,a'), greedy_seplist(char('a'), char(',')), char('a'), eoi))
def test_greedy_seplist2(self): eq_( eval( begin(set_text('a,a,a'), greedy_seplist(char('a'), char(',')), eoi)), True)