From d3338c008dfee6cccf4836965b61b39992a2e0ce Mon Sep 17 00:00:00 2001 From: Masaaki Goshima Date: Thu, 12 Dec 2019 17:43:58 +0900 Subject: [PATCH] Add test case of MapItem include map value --- yaml_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/yaml_test.go b/yaml_test.go index 53b68efb..5444e86b 100644 --- a/yaml_test.go +++ b/yaml_test.go @@ -52,6 +52,9 @@ func (t *marshalTest) MarshalYAML() ([]byte, error) { { "c", true, }, + { + "d", map[string]string{"x": "y"}, + }, }) } @@ -87,6 +90,8 @@ a: a: 1 b: hello c: true + d: + x: y b: a: 2 b: world