diff options
| author | nsfisis <nsfisis@gmail.com> | 2023-09-07 22:27:48 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2023-09-07 22:35:53 +0900 |
| commit | 994e0114d76ae19768d5c303874a968cf6369fd0 (patch) | |
| tree | 5fd3f8b169eea00084b24fbae820f75273864d2a /vhosts/blog/nuldoc-src/xml_test.ts | |
| parent | 57f015992f678bfd7281f171fb9d71349c96a1a0 (diff) | |
| download | nsfisis.dev-994e0114d76ae19768d5c303874a968cf6369fd0.tar.gz nsfisis.dev-994e0114d76ae19768d5c303874a968cf6369fd0.tar.zst nsfisis.dev-994e0114d76ae19768d5c303874a968cf6369fd0.zip | |
meta: migrate to monorepo
Diffstat (limited to 'vhosts/blog/nuldoc-src/xml_test.ts')
| -rw-r--r-- | vhosts/blog/nuldoc-src/xml_test.ts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vhosts/blog/nuldoc-src/xml_test.ts b/vhosts/blog/nuldoc-src/xml_test.ts new file mode 100644 index 00000000..28e15970 --- /dev/null +++ b/vhosts/blog/nuldoc-src/xml_test.ts @@ -0,0 +1,17 @@ +import { assertEquals } from "std/testing/asserts.ts"; +import { parseXmlString } from "./xml.ts"; + +Deno.test("Parse XML", () => { + assertEquals( + "__root__", + parseXmlString( + `<?xml version="1.0" encoding="UTF-8"?> +<hoge> + <piyo> + <!-- comment --> + </piyo> +</hoge> +`, + ).name, + ); +}); |
