completed list-type to array-type conversion and fixed common test module
This commit is contained in:
+15
-2
@@ -49,8 +49,21 @@ func TestDictParser(t *testing.T) {
|
||||
/* 24 */ {`f=func(n){"x"+n}; d={f(5) but "z":10}`, dict.NewDict(map[any]any{"z": int64(10)}), nil},
|
||||
}
|
||||
|
||||
// runTestSuiteSpec(t, section, inputs, 23, 24)
|
||||
runTestSuite(t, section, inputs)
|
||||
// RunTestSuiteSpec(t, section, inputs, 1)
|
||||
RunTestSuite(t, section, inputs)
|
||||
}
|
||||
|
||||
func TestOperations(t *testing.T) {
|
||||
section := "Dict-Operations"
|
||||
inputs := []inputType{
|
||||
/* 1 */ {`{"a":1} + {"b":2}`, dict.NewDict(map[any]any{"a": int64(1), "b": int64(2)}), nil},
|
||||
/* 2 */ {`D={"a":1}; C={"b":2}; X=D+C; C."b" = 3; X`, dict.NewDict(map[any]any{"a": int64(1), "b": int64(2)}), nil},
|
||||
/* 3 */ {`D={"a":1}; C={"b":2}; X=D+C; D."a" = 3; X`, dict.NewDict(map[any]any{"a": int64(1), "b": int64(2)}), nil},
|
||||
/* 4 */ {`L=[8,9]; D={"a":L}; L[0]=11; D."a"[0]`, int64(11), nil},
|
||||
/* 5 */ {`L=[8,9]; D:={"a":L}; L[0]=11; D."a"[0]`, int64(8), nil},
|
||||
}
|
||||
// runTestSuiteSpec(t, section, inputs, 1)
|
||||
RunTestSuite(t, section, inputs)
|
||||
}
|
||||
|
||||
func TestAccessSubFields(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user