def test_unparse_empty_list(self): assert_equals("()", unparse([]))
def test_unparse_list(self): assert_equals("(1 2 3)", unparse(["1", "2", "3"])) assert_equals("(if (foo bar) 42 end)", unparse(["if", ["foo", "bar"], "42", "end"]))
def test_unparse_quotes(self): assert_equals("'foo", unparse(["quote", "foo"])) assert_equals("'(1 2 3)", unparse(["quote", ["1", "2", "3"]]))
def test_unparse_symbol(self): assert_equals("+", unparse("+")) assert_equals("foo", unparse("foo")) assert_equals("lambda", unparse("lambda"))