Software /
code /
prosody
Diff
tests/test_util_stanza.lua @ 7963:4f9535b7fdf7
Merge 0.10->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 06 Mar 2017 16:05:57 +0100 |
parent | 7961:ff556d010225 |
line wrap: on
line diff
--- a/tests/test_util_stanza.lua Mon Mar 06 15:35:02 2017 +0100 +++ b/tests/test_util_stanza.lua Mon Mar 06 16:05:57 2017 +0100 @@ -37,7 +37,7 @@ assert_equal(s1.attr.xmlns, nil); assert_equal(#s1, 0); assert_equal(#s1.tags, 0); - + s1:tag("child1"); assert_equal(#s1.tags, 1); assert_equal(s1.tags[1].name, "child1"); @@ -47,7 +47,7 @@ assert_equal(s1.tags[1].name, "child1"); assert_equal(#s1.tags[1], 1); assert_equal(s1.tags[1][1].name, "grandchild1"); - + s1:up():tag("child2"); assert_equal(#s1.tags, 2, tostring(s1)); assert_equal(s1.tags[1].name, "child1");