diff options
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); + }, +}); |