summaryrefslogtreecommitdiff
path: root/std/encoding/toml_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/encoding/toml_test.ts')
-rw-r--r--std/encoding/toml_test.ts25
1 files changed, 25 insertions, 0 deletions
diff --git a/std/encoding/toml_test.ts b/std/encoding/toml_test.ts
index 5666a875a..8e25d61ea 100644
--- a/std/encoding/toml_test.ts
+++ b/std/encoding/toml_test.ts
@@ -441,3 +441,28 @@ Deno.test({
assertEquals(actual, expected);
},
});
+
+Deno.test({
+ name: "[TOML] Inline Array of Inline Table",
+ fn(): void {
+ const expected = {
+ inlineArray: {
+ string: [{ var: "a string" }],
+ my_points: [
+ { x: 1, y: 2, z: 3 },
+ { x: 7, y: 8, z: 9 },
+ { x: 2, y: 4, z: 8 },
+ ],
+ points: [
+ { x: 1, y: 2, z: 3 },
+ { x: 7, y: 8, z: 9 },
+ { x: 2, y: 4, z: 8 },
+ ],
+ },
+ };
+ const actual = parseFile(
+ path.join(testdataDir, "inlineArrayOfInlineTable.toml"),
+ );
+ assertEquals(actual, expected);
+ },
+});