alias operators: '<<' same as '<+', '>>' same as '+>'. Insert and append operation optimized with linked lists

This commit is contained in:
2026-05-16 17:18:23 +02:00
parent 3a4e217891
commit e6844ad1e8
7 changed files with 386 additions and 34 deletions
+9 -9
View File
@@ -32,15 +32,15 @@ func testStringEndingWithOperator(source string) bool {
return scan.StringEndsWithOperator(source)
}
func testStringArrayEndingWithOperatorSpec(t *testing.T, section string, inputs []inputType, spec ...int) {
for i := range spec {
if spec[i] < 1 || spec[i] > len(inputs) {
t.Errorf("Invalid test spec index: %d (must be between 1 and %d)", spec[i], len(inputs))
continue
}
doEndingTest(t, section, inputs[spec[i]-1], spec[i]-1)
}
}
// func testStringArrayEndingWithOperatorSpec(t *testing.T, section string, inputs []inputType, spec ...int) {
// for i := range spec {
// if spec[i] < 1 || spec[i] > len(inputs) {
// t.Errorf("Invalid test spec index: %d (must be between 1 and %d)", spec[i], len(inputs))
// continue
// }
// doEndingTest(t, section, inputs[spec[i]-1], spec[i]-1)
// }
// }
func testStringArrayEndingWithOperator(t *testing.T, section string, inputs []inputType) {
for i, input := range inputs {