示例#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
 def test_loop2(self):
     print tag_loop_label(LoopTimesForm(3, (1, next(), 2)))
示例#7
0
 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)