def test_cons(): lst = cons(1, nil) assert_equal(lst.hd, 1) assert_equal(lst.tl, nil)
def test_one_arg_constructor(): lst = cons(1) assert_equal(lst.hd, 1) assert_equal(lst.tl, nil)