From f8f561135016d23c0bb4ee75b6d6e54eda9daed8 Mon Sep 17 00:00:00 2001 From: Vincent LE GOFF Date: Thu, 4 Apr 2019 12:00:24 +0200 Subject: TOML: Full support of inline table (denoland/deno_std#320) Original: https://github.com/denoland/deno_std/commit/d16072a33439749f2e12ed85954c7721161db8cc --- toml/parser_test.ts | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'toml/parser_test.ts') diff --git a/toml/parser_test.ts b/toml/parser_test.ts index 104428b25..77bf9dc97 100644 --- a/toml/parser_test.ts +++ b/toml/parser_test.ts @@ -181,6 +181,20 @@ test({ fn() { const expected = { inlinetable: { + nile: { + also: { + malevolant: { + creation: { + drum: { + kit: "Tama" + } + } + } + }, + derek: { + roddy: "drummer" + } + }, name: { first: "Tom", last: "Preston-Werner" @@ -189,10 +203,16 @@ test({ x: 1, y: 2 }, - animal: { + dog: { type: { name: "pug" } + }, + "tosin.abasi": "guitarist", + animal: { + as: { + leaders: "tosin" + } } } }; -- cgit v1.2.3