Fixed handling of --- #1890, #1896

This commit is contained in:
Mike Farah
2023-12-12 11:30:12 +11:00
parent fa322aec33
commit 7f26d91cd0
2 changed files with 22 additions and 2 deletions
+12
View File
@@ -7,6 +7,18 @@ import (
)
var yamlFormatScenarios = []formatScenario{
{
description: "scalar with doc separator",
skipDoc: true,
input: "--- cat",
expected: "---\ncat\n",
},
{
description: "scalar with doc separator",
skipDoc: true,
input: "---cat",
expected: "---cat\n",
},
{
description: "basic - null",
skipDoc: true,