This commit is contained in:
Mike Farah
2025-12-08 20:30:47 +11:00
parent 65e79845d4
commit df3101ce53
4 changed files with 125 additions and 2 deletions
+12
View File
@@ -37,6 +37,18 @@ var hclFormatScenarios = []formatScenario{
expected: "message = \"Hello, ${name}!\"\n",
scenarioType: "roundtrip",
},
{
description: "Function roundtrip",
input: `shouty_message = upper(message)`,
expected: "shouty_message = upper(message)\n",
scenarioType: "roundtrip",
},
{
description: "Arithmetic roundtrip",
input: `sum = 1 + addend`,
expected: "sum = 1 + addend\n",
scenarioType: "roundtrip",
},
{
description: "number attribute",
input: `port = 8080`,