def test_too_many_unquote(self): assert_raises(DaoSyntaxError, eval, qq(uq(uq(add(1,1)))))
def test_unquote_add(self): eq_(eval(qq(uq(add(1,1)))), 2)
def test_unquote_slice(self): eq_(eval(qq(add(uqs(quote((3,4)))))), add(3, 4))
def test_simple1(self): eq_(eval(qq(1)), 1)
def test_tuple1(self): eq_(eval(qq((1,))), (1,)) eq_(eval(qq((1,2))), (1,2)) eq_(eval(qq((add(1,1),2))), (add(1,1),2))
def test_too_many_unquote(self): assert_raises(DaoSyntaxError, eval, qq(uq(uq(add(1, 1)))))
def test_unquote_slice(self): eq_(eval(qq(add(uqs(quote((3, 4)))))), add(3, 4))
def test_unquote_add(self): eq_(eval(qq(uq(add(1, 1)))), 2)
def test_tuple1(self): eq_(eval(qq((1, ))), (1, )) eq_(eval(qq((1, 2))), (1, 2)) eq_(eval(qq((add(1, 1), 2))), (add(1, 1), 2))