Changeset

7243:6e6eea2124c5

tests: Add namespace/prefix tracking test for util.xml
author Matthew Wild <mwild1@gmail.com>
date Sat, 05 Mar 2016 23:44:57 +0000
parents 7242:d0296db76ccd
children 7245:210d8329dc70
files tests/test_util_xml.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test_util_xml.lua	Sat Mar 05 23:44:21 2016 +0000
+++ b/tests/test_util_xml.lua	Sat Mar 05 23:44:57 2016 +0000
@@ -9,4 +9,5 @@
 ]]
 	local stanza = parse(x);
 	assert_equal(stanza.tags[2].attr.xmlns, "b");
+	assert_equal(stanza.tags[2].namespaces["a"], "b");
 end