diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-01-09 17:36:28 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-01-09 17:36:28 +0000 |
commit | d4f24630f3a454a0aecaa17ee2667ad1bce367f5 (patch) | |
tree | 0c2b4867abf3f0e3e35a177e957b6992ac74f10e /tests/test_util_stanza.lua | |
parent | c1e6b9426632394045549a99cac18b11955bb687 (diff) | |
download | prosody-d4f24630f3a454a0aecaa17ee2667ad1bce367f5.tar.gz prosody-d4f24630f3a454a0aecaa17ee2667ad1bce367f5.zip |
Add test for previous commit
Diffstat (limited to 'tests/test_util_stanza.lua')
-rw-r--r-- | tests/test_util_stanza.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_util_stanza.lua b/tests/test_util_stanza.lua new file mode 100644 index 00000000..897dab95 --- /dev/null +++ b/tests/test_util_stanza.lua @@ -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 |