From 1c50ae4e6af4fa6e3a9e0ce75062bb7412b65130 Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Tue, 30 Nov 2021 13:22:18 +1100 Subject: [PATCH] Added another test --- pkg/yqlib/operator_collect_object_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkg/yqlib/operator_collect_object_test.go b/pkg/yqlib/operator_collect_object_test.go index 95463934..fcc399d0 100644 --- a/pkg/yqlib/operator_collect_object_test.go +++ b/pkg/yqlib/operator_collect_object_test.go @@ -54,6 +54,16 @@ var collectObjectOperatorScenarios = []expressionScenario{ "D0, P[], (!!map)::wrap: {name: Mike}\n", }, }, + { + skipDoc: true, + document: "{name: Mike}\n", + document2: "{name: Bob}\n", + expression: `{"wrap": .}`, + expected: []string{ + "D0, P[], (!!map)::wrap: {name: Mike}\n", + "D0, P[], (!!map)::wrap: {name: Bob}\n", + }, + }, { skipDoc: true, document: "{name: Mike}\n---\n{name: Bob}",