mirror of
https://github.com/goccy/go-yaml.git
synced 2025-12-08 06:09:57 +00:00
Fix encoding of string that contains "- " (#657)
* fix encoding of string that contains "- " * fix test case
This commit is contained in:
parent
2ac8cffa27
commit
89a66008de
3 changed files with 7 additions and 2 deletions
|
|
@ -171,7 +171,7 @@ func TestEncoder(t *testing.T) {
|
|||
},
|
||||
},
|
||||
{
|
||||
"a: -\n",
|
||||
"a: \"-\"\n",
|
||||
map[string]string{"a": "-"},
|
||||
nil,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue