blob: 28e15970f121477d35b0e02a58d466e32e70b288 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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,
);
});
|