maps and strings

This commit is contained in:
Mike Farah
2025-12-08 20:30:47 +11:00
parent 69076dfe81
commit 7d2c774e8f
3 changed files with 36 additions and 5 deletions
+2 -2
View File
@@ -34,13 +34,13 @@ var hclFormatScenarios = []formatScenario{
{
description: "list of strings",
input: `tags = ["a", "b"]`,
expected: "tags: ' [\"a\", \"b\"]'\n",
expected: "tags:\n - a\n - b\n",
scenarioType: "decode",
},
{
description: "object/map attribute",
input: `obj = { a = 1, b = "two" }`,
expected: "obj: ' { a = 1, b = \"two\" }'\n",
expected: "obj:\n a: 1\n b: two\n",
scenarioType: "decode",
},
{