summaryrefslogtreecommitdiff
path: root/t/tests/xml.t
diff options
context:
space:
mode:
Diffstat (limited to 't/tests/xml.t')
-rw-r--r--t/tests/xml.t19
1 files changed, 19 insertions, 0 deletions
diff --git a/t/tests/xml.t b/t/tests/xml.t
new file mode 100644
index 0000000..0a147b4
--- /dev/null
+++ b/t/tests/xml.t
@@ -0,0 +1,19 @@
+# -*- mode: perl6 -*-
+use Test;
+use lib 't/lib';
+use XML::LibXML;
+
+my XML::LibXML $p .= new;
+my $d = $p.parse(q:to/XML/);
+<?xml version="1.0"?>
+<rootNode/>
+XML
+
+is(
+ $d.rootElement.name,
+ 'rootNode',
+ 'parsed ok',
+);
+
+done-testing;
+