diff options
author | Yusuke Sakurai <kerokerokerop@gmail.com> | 2019-09-24 00:08:57 +0900 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-09-23 11:08:57 -0400 |
commit | aa21e7bc81909630bec6e3e527e89f3673b75a3c (patch) | |
tree | a371dfae890bbc1cd47b148dece4cba4de108a09 /encoding/toml_test.ts | |
parent | 9739ba55df5afef922f96b107f91dbb37128bf5a (diff) |
fix TOML's key encoding (denoland/deno_std#612)
Original: https://github.com/denoland/deno_std/commit/54a5b95fefd10b41f65cf6fd3eba626577eadda7
Diffstat (limited to 'encoding/toml_test.ts')
-rw-r--r-- | encoding/toml_test.ts | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/encoding/toml_test.ts b/encoding/toml_test.ts index 28a620453..22ecfa68a 100644 --- a/encoding/toml_test.ts +++ b/encoding/toml_test.ts @@ -1,5 +1,5 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -import { test } from "../testing/mod.ts"; +import { runIfMain, test } from "../testing/mod.ts"; import { assertEquals } from "../testing/asserts.ts"; import { existsSync } from "../fs/exists.ts"; import { readFileStrSync } from "../fs/read_file_str.ts"; @@ -301,6 +301,17 @@ test({ const src = { foo: { bar: "deno" }, this: { is: { nested: "denonono" } }, + "https://deno.land/std": { + $: "doller" + }, + "##": { + deno: { + "https://deno.land": { + proto: "https", + ":80": "port" + } + } + }, arrayObjects: [{ stuff: "in" }, {}, { the: "array" }], deno: "is", not: "[node]", @@ -376,6 +387,13 @@ bar = "deno" [this.is] nested = "denonono" +["https://deno.land/std"] +"$" = "doller" + +["##".deno."https://deno.land"] +proto = "https" +":80" = "port" + [[arrayObjects]] stuff = "in" @@ -388,3 +406,5 @@ the = "array" assertEquals(actual, expected); } }); + +runIfMain(import.meta); |