mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-02 23:34:48 +08:00
* Update docs given https://github.com/yaml/go-yaml/pull/348 * Fix for https://github.com/mikefarah/yq/issues/2677 Depends on https://github.com/yaml/go-yaml/pull/348 * Test for https://github.com/mikefarah/yq/issues/2677 * Remove redundant check and add test case for explicit `!!merge` on `*+` traversal * Bump go.yaml.in/yaml/v4 from 4.0.0-rc.4 to 4.0.0-rc.5
This commit is contained in:
@@ -37,7 +37,7 @@ var moduloOperatorScenarios = []expressionScenario{
|
||||
document: `{a: 12, b: 2.5}`,
|
||||
expression: `.a = .a % .b`,
|
||||
expected: []string{
|
||||
"D0, P[], (!!map)::{a: !!float 2, b: 2.5}\n",
|
||||
"D0, P[], (!!map)::{a: 2, b: 2.5}\n",
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -53,7 +53,7 @@ var moduloOperatorScenarios = []expressionScenario{
|
||||
document: `{a: 1.1, b: 0}`,
|
||||
expression: `.a = .a % .b`,
|
||||
expected: []string{
|
||||
"D0, P[], (!!map)::{a: !!float NaN, b: 0}\n",
|
||||
"D0, P[], (!!map)::{a: NaN, b: 0}\n",
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -70,7 +70,7 @@ var moduloOperatorScenarios = []expressionScenario{
|
||||
document: "a: 2\nb: !goat 2.3",
|
||||
expression: `.a = .a % .b`,
|
||||
expected: []string{
|
||||
"D0, P[], (!!map)::a: !!float 2\nb: !goat 2.3\n",
|
||||
"D0, P[], (!!map)::a: 2\nb: !goat 2.3\n",
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user