summaryrefslogtreecommitdiff
path: root/toml/parser_test.ts
diff options
context:
space:
mode:
authorVincent LE GOFF <g_n_s@hotmail.fr>2019-04-04 12:00:24 +0200
committerRyan Dahl <ry@tinyclouds.org>2019-04-04 06:00:24 -0400
commitf8f561135016d23c0bb4ee75b6d6e54eda9daed8 (patch)
tree9eed74199dd57d67be5c99b7a818c7de6b48219d /toml/parser_test.ts
parent0ff0ba2b32113e4aa18fe9f35e0f9068cce3ba08 (diff)
TOML: Full support of inline table (denoland/deno_std#320)
Original: https://github.com/denoland/deno_std/commit/d16072a33439749f2e12ed85954c7721161db8cc
Diffstat (limited to 'toml/parser_test.ts')
-rw-r--r--toml/parser_test.ts22
1 files changed, 21 insertions, 1 deletions
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"
+ }
}
}
};