From a02f998fc658e378d3ce920993e7082fa283aa1b Mon Sep 17 00:00:00 2001 From: Celestino Amoroso Date: Thu, 11 Jul 2024 07:23:35 +0200 Subject: [PATCH] t_iterator_test.go: Fixed test numbering and add a commentend test that is not yet fulfilled --- t_iterator_test.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/t_iterator_test.go b/t_iterator_test.go index 8d7be16..04f4db5 100644 --- a/t_iterator_test.go +++ b/t_iterator_test.go @@ -17,13 +17,12 @@ func TestIteratorParser(t *testing.T) { /* 6 */ {`builtin "math.arith"; include "test-resources/iterator.expr"; it=$(ds,3); mul(it)`, int64(0), nil}, /* 7 */ {`builtin "math.arith"; include "test-resources/file-reader.expr"; it=$(ds,"test-resources/int.list"); mul(it)`, int64(12000), nil}, /* 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}, + /* 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}, } - // inputs1 := []inputType{ - // /* 1 */ {`0?{}`, nil, nil}, - // } - //runTestSuiteSpec(t, section, inputs, 2) + + //runTestSuiteSpec(t, section, inputs, 12) runTestSuite(t, section, inputs) }