alias operators: '<<' same as '<+', '>>' same as '+>'. Insert and append operation optimized with linked lists
This commit is contained in:
+9
-9
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user