bring back empty() vs new(val)
Go / test (push) Successful in 10s

This commit is contained in:
2025-11-04 13:03:00 -10:00
parent 4e1cbce3a7
commit db1bd5f322
4 changed files with 39 additions and 39 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ func TestReadListElem(t *testing.T) {
func TestReadList(t *testing.T) {
input := "(1 2 3)"
l, err, pos := readList(input, 0, "user")
assert.Equal(t, list.New().Conj(3).Conj(2).Conj(1), l, "should read list")
assert.Equal(t, list.Empty().Conj(3).Conj(2).Conj(1), l, "should read list")
assert.Equal(t, nil, err, "should read without error")
assert.Equal(t, len(input), pos, "should read the whole string")
}