예제 #1
0
 def test_next2(self):
     eq_(preparse(next / 'loop' * 2), special.next('loop', 2))
예제 #2
0
파일: testdinpy.py 프로젝트: chaosim/dao
 def test_next2(self):
   eq_(preparse(next/'loop'*2), special.next('loop', 2)) 
예제 #3
0
 def test_next1(self):
     eq_(preparse(next / 'loop'), special.next('loop'))
예제 #4
0
파일: testdinpy.py 프로젝트: chaosim/dao
 def test_next1(self):
   eq_(preparse(next/'loop'), special.next('loop')) 
예제 #5
0
파일: dinpy.py 프로젝트: hermetique/dao
def make_next(type, level, label):
    type = None if isinstance(type, Var) else type
    level = 0 if isinstance(level, Var) else level
    label = None if isinstance(label, Var) else label
    return special.next(type, level, label)
예제 #6
0
파일: testparse.py 프로젝트: charyorde/dao
 def test_loop2(self):
     print tag_loop_label(LoopTimesForm(3, (1, next(), 2)))
예제 #7
0
파일: testparse.py 프로젝트: charyorde/dao
 def test_loop2(self):
     eq_(tag_loop_label(LoopForm((1, next(), 2))), block("$1", 1, continue_block("$1"), 2, continue_block("$1")))
예제 #8
0
파일: dinpy.py 프로젝트: charyorde/dao
def make_next(type, level, label):
  type = None if isinstance(type, Var) else type
  level = 0 if isinstance(level, Var) else level
  label = None if isinstance(label, Var) else label
  return special.next(type, level, label)