diff options
author | Yuki Tanaka <uki00a@gmail.com> | 2020-12-05 23:49:05 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-05 15:49:05 +0100 |
commit | d72310f139661263fdb4d77c3e311130ac23d971 (patch) | |
tree | 4ad9876dd8afce039acd9391106870c9d3e2a339 /std/encoding/toml_test.ts | |
parent | 4f0dc2c51df966dc7bfd1148aee5d311edafbc47 (diff) |
fix(std/encoding): Rewrite toml parser not to use eval() (#8624)
Diffstat (limited to 'std/encoding/toml_test.ts')
-rw-r--r-- | std/encoding/toml_test.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/std/encoding/toml_test.ts b/std/encoding/toml_test.ts index 8e25d61ea..870793844 100644 --- a/std/encoding/toml_test.ts +++ b/std/encoding/toml_test.ts @@ -32,6 +32,8 @@ Deno.test({ withSemicolon: `const message = 'hello world';`, withHexNumberLiteral: "Prevent bug from stripping string here ->0xabcdef", + withUnicodeChar1: "あ", + withUnicodeChar2: "Deno🦕", }, }; const actual = parseFile(path.join(testdataDir, "string.toml")); @@ -466,3 +468,12 @@ Deno.test({ assertEquals(actual, expected); }, }); + +Deno.test({ + name: "[TOML] Parse malformed local time as String (#8433)", + fn(): void { + const expected = { sign: "2020-01-01x" }; + const actual = parse(`sign='2020-01-01x'`); + assertEquals(actual, expected); + }, +}); |