Skip to content

Commit

Permalink
Add test case of MapItem include map value
Browse files Browse the repository at this point in the history
  • Loading branch information
goccy committed Dec 12, 2019
1 parent a357645 commit d3338c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions yaml_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ func (t *marshalTest) MarshalYAML() ([]byte, error) {
{
"c", true,
},
{
"d", map[string]string{"x": "y"},
},
})
}

Expand Down Expand Up @@ -87,6 +90,8 @@ a:
a: 1
b: hello
c: true
d:
x: y
b:
a: 2
b: world
Expand Down

0 comments on commit d3338c0

Please sign in to comment.