Comparison

tests/test_util_stanza.lua @ 1522:569d58d21612

Add copyright header to those files missing one
author Matthew Wild <mwild1@gmail.com>
date Fri, 10 Jul 2009 03:08:38 +0100
parent 682:dedd19e9d4b3
child 2923:b7049746bd29
comparison
equal deleted inserted replaced
1521:cee81a5ae949 1522:569d58d21612
1 -- Prosody IM
2 -- Copyright (C) 2008-2009 Matthew Wild
3 -- Copyright (C) 2008-2009 Waqas Hussain
4 --
5 -- This project is MIT/X11 licensed. Please see the
6 -- COPYING file in the source package for more information.
7 --
8
1 9
2 function preserialize(preserialize, st) 10 function preserialize(preserialize, st)
3 local stanza = st.stanza("message", { a = "a" }); 11 local stanza = st.stanza("message", { a = "a" });
4 local stanza2 = preserialize(stanza); 12 local stanza2 = preserialize(stanza);
5 assert_is(stanza2 and stanza.name, "preserialize returns a stanza"); 13 assert_is(stanza2 and stanza.name, "preserialize returns a stanza");