t_dict_test.go: some tests added

This commit is contained in:
Celestino Amoroso 2024-06-05 05:49:07 +02:00
parent ab2e3f0528
commit a16ac70e4a

View File

@ -30,6 +30,7 @@ func TestDictParser(t *testing.T) {
/* 7 */ {`2 in {1:"one", 2:"two"}`, true, nil},
/* 8 */ {`D={"a":1, "b":2}; D["a"]=9; D`, map[any]any{"a": 9, "b": 2}, nil},
/* 9 */ {`D={"a":1, "b":2}; D["z"]=9; D`, map[any]any{"z": 9, "a": 1, "b": 2}, nil},
/* 10 */ {`D={"a":1, "b":2}; D[nil]=9`, nil, errors.New(`[1:21] index/key is nil`)},
}
succeeded := 0