From 8974bc7e96ea568e34198bc3793071676155aa4a Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Wed, 15 Mar 2023 13:15:17 +1100 Subject: [PATCH] formatting --- pkg/yqlib/operator_filter.go | 1 - pkg/yqlib/operator_filter_test.go | 14 +++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/pkg/yqlib/operator_filter.go b/pkg/yqlib/operator_filter.go index 451b0beb..8cf28303 100644 --- a/pkg/yqlib/operator_filter.go +++ b/pkg/yqlib/operator_filter.go @@ -30,4 +30,3 @@ func filterOperator(d *dataTreeNavigator, context Context, expressionNode *Expre } return context.ChildContext(results), nil } - diff --git a/pkg/yqlib/operator_filter_test.go b/pkg/yqlib/operator_filter_test.go index 05a68161..fc050796 100644 --- a/pkg/yqlib/operator_filter_test.go +++ b/pkg/yqlib/operator_filter_test.go @@ -7,22 +7,22 @@ import ( var filterOperatorScenarios = []expressionScenario{ { description: "Filter array", - document: `[1,2,3]`, - expression: `filter(. < 3)`, + document: `[1,2,3]`, + expression: `filter(. < 3)`, expected: []string{ "D0, P[], (!!seq)::[1, 2]\n", }, }, { - skipDoc: true, - document: `[1,2,3]`, - expression: `filter(. > 1)`, + skipDoc: true, + document: `[1,2,3]`, + expression: `filter(. > 1)`, expected: []string{ "D0, P[], (!!seq)::[2, 3]\n", }, }, { - skipDoc: true, + skipDoc: true, description: "Filter array to empty", document: `[1,2,3]`, expression: `filter(. > 4)`, @@ -31,7 +31,7 @@ var filterOperatorScenarios = []expressionScenario{ }, }, { - skipDoc: true, + skipDoc: true, description: "Filter empty array", document: `[]`, expression: `filter(. > 1)`,