restructured some test files

This commit is contained in:
2026-05-11 14:01:22 +02:00
parent 45faea7620
commit 0f293fdbbc
5 changed files with 33 additions and 16 deletions
+5 -5
View File
@@ -11,16 +11,16 @@ import (
)
func TestIterIterator(t *testing.T) {
section := "Iterator"
section := "Iter-Iter"
inputs := []inputType{
/* 1 */ {`it=$(4); $(it) filter ${_}==100`, kern.NewListA(), nil},
/* 2 */ {`it=$(4); $(it, $_) filter ${_}==100`, kern.NewListA(), nil},
/* 1 */ {`it=$(4); $$($(it) filter ${_}==100)`, kern.NewListA(), nil},
/* 2 */ {`it=$(4); $$($(it, $_) filter ${_}==100)`, kern.NewListA(), nil},
/* 3 */ {`it=$(4); $(it, 10+$_, last-1) digest ${_}`, int64(12), nil},
/* 4 */ {`f=func(n){last-n}; it=$(4); $(it, 10+$_, f(-1)) digest ${_}`, int64(14), nil},
}
runTestSuiteSpec(t, section, inputs, 4)
// runTestSuite(t, section, inputs)
// runTestSuiteSpec(t, section, inputs, 4)
runTestSuite(t, section, inputs)
}
// func TestNewIterIterator(t *testing.T) {