the function call procedure now check the number of actual parameters against the numer of formal parameters

This commit is contained in:
2024-05-04 22:35:03 +02:00
parent 0fdd51049d
commit 1d8569d3a9
5 changed files with 32 additions and 8 deletions
+1 -1
View File
@@ -160,7 +160,7 @@ func TestParser(t *testing.T) {
/* 138 */ {`nil`, nil, nil},
/* 139 */ {`null`, nil, errors.New(`undefined variable or function "null"`)},
/* 140 */ {`{"key"}`, nil, errors.New(`[1:8] expected ":", got "}"`)},
/* 141 */ {`{"key":}`, nil, errors.New(`[1:9] expected dictionary value, got "}"`)},
/* 141 */ {`{"key":}`, nil, errors.New(`[1:9] expected "dictionary-value", got "}"`)},
/* 142 */ {`{}`, map[any]any{}, nil},
/* 143 */ {`1|2`, newFraction(1, 2), nil},
/* 144 */ {`1|2 + 1`, newFraction(3, 2), nil},