From c933d017d7cae2c2b8a00330079e8f10d96aa778 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 5 Mar 2016 23:42:01 +0000 Subject: tests: Add basic tests for util.xml and util.xmppstream --- tests/test_util_xml.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/test_util_xml.lua (limited to 'tests/test_util_xml.lua') diff --git a/tests/test_util_xml.lua b/tests/test_util_xml.lua new file mode 100644 index 00000000..ba44da19 --- /dev/null +++ b/tests/test_util_xml.lua @@ -0,0 +1,12 @@ +function parse(parse) + local x = +[[ + + + + + +]] + local stanza = parse(x); + assert_equal(stanza.tags[2].attr.xmlns, "b"); +end -- cgit v1.2.3