'join' operator renamed as 'cat'

This commit is contained in:
2026-05-09 10:34:46 +02:00
parent 5950630cf7
commit 5285b61320
3 changed files with 12 additions and 10 deletions
+4 -4
View File
@@ -75,11 +75,11 @@ func TestOperatorDigest(t *testing.T) {
runTestSuite(t, section, inputs)
}
func TestOperatorJoin(t *testing.T) {
section := "Operator-Join"
func TestOperatorCat(t *testing.T) {
section := "Operator-Cat"
inputs := []inputType{
/* 1 */ {`["a","b"] join ["x"]`, kern.NewList([]any{"a", "b", "x"}), nil},
/* 2 */ {`["a","b"] join ["x"-true]`, nil, `[1:21] left operand 'x' [string] and right operand 'true' [bool] are not compatible with operator "-"`},
/* 1 */ {`["a","b"] cat ["x"]`, kern.NewList([]any{"a", "b", "x"}), nil},
/* 2 */ {`["a","b"] cat ["x"-true]`, nil, `[1:20] left operand 'x' [string] and right operand 'true' [bool] are not compatible with operator "-"`},
}
// runTestSuiteSpec(t, section, inputs, 2)