blob: c423800e8c55124d251e853ac29d1664f094d349 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import { assertEquals } from "@std/assert";
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,
);
});
|