예제 #1
0
 def test_unquote_slice(self):
     eq_(
         eval(
             quasiquote((unquote(add(1, 1)), unquote_splice(quote(
                 (3, 4)))))), (2, 3, 4))
예제 #2
0
 def test_unquote_slice1(self):
     assert_raises(DaoSyntaxError, eval,
                   quasiquote(unquote_splice(add(1, 1))))