t_iterator_test.go: added a test to verify the reset command of the list iterator
This commit is contained in:
parent
a73d24b171
commit
d8aed9dd7a
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user