diff options
Diffstat (limited to 'nuldoc-src/xml_test.ts')
| -rw-r--r-- | nuldoc-src/xml_test.ts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/nuldoc-src/xml_test.ts b/nuldoc-src/xml_test.ts new file mode 100644 index 0000000..28e1597 --- /dev/null +++ b/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, + ); +}); |
