Fixed collect at document level

This commit is contained in:
Mike Farah
2021-02-11 10:58:40 +11:00
parent 69386316f3
commit 6ed037a9f6
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -13,6 +13,15 @@ var collectOperatorScenarios = []expressionScenario{
"D0, P[], (!!seq)::[]\n",
},
},
{
skipDoc: true,
document: "{a: apple}\n---\n{b: frog}",
expression: `[.]`,
expected: []string{
"D0, P[], (!!seq)::- {a: apple}\n- {b: frog}\n",
},
},
{
skipDoc: true,
document: ``,