data-cursor.go: add item mapping support

This commit is contained in:
2024-07-13 06:44:00 +02:00
parent 8547248ea2
commit 9a95a837f6
3 changed files with 59 additions and 29 deletions
+3 -3
View File
@@ -20,9 +20,9 @@ func TestIteratorParser(t *testing.T) {
/* 9 */ {`include "test-resources/file-reader.expr"; it=$(ds,"test-resources/int.list"); it.clean`, true, nil},
/* 10 */ {`it=$(1,2,3); it++`, int64(1), nil},
/* 11 */ {`it=$(1,2,3); it++; it.reset; it++`, int64(1), nil},
/* 12 */ {`include "test-resources/filter.expr"; it=$(ds,10); it++`, int64(1), nil},
/* 12 */ {`include "test-resources/filter.expr"; it=$(ds,10); it++`, int64(2), nil},
}
//runTestSuiteSpec(t, section, inputs, 12)
runTestSuite(t, section, inputs)
runTestSuiteSpec(t, section, inputs, 12)
//runTestSuite(t, section, inputs)
}