From d8aed9dd7ad4149353d0bdaa995aa3f4d20b4ada Mon Sep 17 00:00:00 2001 From: Celestino Amoroso Date: Thu, 11 Jul 2024 05:54:22 +0200 Subject: [PATCH] t_iterator_test.go: added a test to verify the reset command of the list iterator --- t_iterator_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t_iterator_test.go b/t_iterator_test.go index 1581068..8d7be16 100644 --- a/t_iterator_test.go +++ b/t_iterator_test.go @@ -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) }