funcs_test.go: added some tests
This commit is contained in:
parent
35e794701a
commit
6786666cf4
@ -76,6 +76,9 @@ func TestFuncs(t *testing.T) {
|
|||||||
/* 63 */ {`dec(true)`, float64(1), nil},
|
/* 63 */ {`dec(true)`, float64(1), nil},
|
||||||
/* 64 */ {`dec(true")`, nil, errors.New("[1:11] missing string termination \"")},
|
/* 64 */ {`dec(true")`, nil, errors.New("[1:11] missing string termination \"")},
|
||||||
/* 65 */ {`builtin "string"; joinStr("-", [1, "two", "three"])`, nil, errors.New(`joinStr() expected string, got int64 (1)`)},
|
/* 65 */ {`builtin "string"; joinStr("-", [1, "two", "three"])`, nil, errors.New(`joinStr() expected string, got int64 (1)`)},
|
||||||
|
/* 65 */ {`dec()`, nil, errors.New(`too few params -- expected 1, got 0`)},
|
||||||
|
/* 66 */ {`dec(1,2,3)`, nil, errors.New(`too much params -- expected 1, got 3`)},
|
||||||
|
/* 67 */ {`builtin "string"; joinStr()`, nil, errors.New(`too few params -- expected 1 or more, got 0`)},
|
||||||
// /* 64 */ {`string(true)`, "true", nil},
|
// /* 64 */ {`string(true)`, "true", nil},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user