#607 Fix string value with spaces error

This commit is contained in:
djajcevic 2020-12-21 22:04:08 +01:00 committed by Mike Farah
parent 7849232255
commit 540d4953f5
2 changed files with 8 additions and 1 deletions

View File

@ -12,6 +12,13 @@ var assignOperatorScenarios = []expressionScenario{
"D0, P[], ()::a:\n b: cat\nx: frog\n", "D0, P[], ()::a:\n b: cat\nx: frog\n",
}, },
}, },
{
description: "Create yaml file with value with spaces",
expression: `.a.b = "cat" | .x = "frog jumps"`,
expected: []string{
"D0, P[], ()::a:\n b: cat\nx: frog jumps\n",
},
},
{ {
description: "Update node to be the child value", description: "Update node to be the child value",
document: `{a: {b: {g: foof}}}`, document: `{a: {b: {g: foof}}}`,