Example #1
0
 def test_next2(self):
     eq_(preparse(next / 'loop' * 2), special.next('loop', 2))
Example #2
0
 def test_next2(self):
   eq_(preparse(next/'loop'*2), special.next('loop', 2)) 
Example #3
0
 def test_next1(self):
     eq_(preparse(next / 'loop'), special.next('loop'))
Example #4
0
 def test_next1(self):
   eq_(preparse(next/'loop'), special.next('loop')) 
Example #5
0
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)
Example #6
0
 def test_loop2(self):
     print tag_loop_label(LoopTimesForm(3, (1, next(), 2)))
Example #7
0
 def test_loop2(self):
     eq_(tag_loop_label(LoopForm((1, next(), 2))), block("$1", 1, continue_block("$1"), 2, continue_block("$1")))
Example #8
0
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)