Diff

tests/test_util_stanza.lua @ 681:686b73503ce8

Add test for previous commit
author Matthew Wild <mwild1@gmail.com>
date Fri, 09 Jan 2009 17:36:28 +0000
child 682:dedd19e9d4b3
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test_util_stanza.lua	Fri Jan 09 17:36:28 2009 +0000
@@ -0,0 +1,7 @@
+
+function deserialize(deserialize, st)
+	local stanza = st.stanza("message", { a = "a" });
+	
+	local stanza2 = deserialize(st.preserialize(stanza));
+	assert_is(stanza2.last_add, "Deserialized stanza is missing last_add for adding child tags");
+end