示例#1
0
 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'])
示例#2
0
文件: testparser.py 项目: chaosim/dao
 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'])
示例#3
0
文件: testparser.py 项目: chaosim/dao
 def test_lazy_any3(self):
   eq_(eval(begin(set_text('aaa'), lazy_any(char('a')), char('a'), eoi)), True)
示例#4
0
 def test_lazy_any1(self):
     eq_(eval(begin(set_text('aaa'), lazy_any(char('a')))), True)