t_iterator_test.go: added a test to verify the reset command of the list iterator

This commit is contained in:
Celestino Amoroso 2024-07-11 05:54:22 +02:00
parent a73d24b171
commit d8aed9dd7a

View File

@ -19,10 +19,11 @@ func TestIteratorParser(t *testing.T) {
/* 8 */ {`include "test-resources/file-reader.expr"; it=$(ds,"test-resources/int.list"); it++; it.index`, int64(0), nil},
/* 10 */ {`include "test-resources/file-reader.expr"; it=$(ds,"test-resources/int.list"); it.clean`, true, nil},
/* 11 */ {`it=$(1,2,3); it++`, int64(1), nil},
/* 12 */ {`it=$(1,2,3); it++; it.reset; it++`, int64(1), nil},
}
// inputs1 := []inputType{
// /* 1 */ {`0?{}`, nil, nil},
// }
// runTestSuiteSpec(t, section, inputs, 1)
//runTestSuiteSpec(t, section, inputs, 2)
runTestSuite(t, section, inputs)
}