示例#1
0
 def test_make_list_with_head_none(self):
     list = List.make(None)
     result = list.asString()
     self.assertEqual("(nil)", result)
示例#2
0
 def test_make_list_with_nested_list(self):
     list = List.make(1, List.make(2, 3), 4)
     result = list.asString()
     self.assertEqual("(1 (2 3) 4)", result)
示例#3
0
 def test_make_simple_list(self):
     list = List.make(1, 2, 3)
     result = list.asString()
     self.assertEqual("(1 2 3)", result)