equal
deleted
inserted
replaced
344 assert.has_error_match(function () |
344 assert.has_error_match(function () |
345 s:maptags(function () end); |
345 s:maptags(function () end); |
346 end, "Invalid stanza"); |
346 end, "Invalid stanza"); |
347 end); |
347 end); |
348 end); |
348 end); |
|
349 |
|
350 describe("#clone", function () |
|
351 it("works", function () |
|
352 local s = st.message({type="chat"}, "Hello"):reset(); |
|
353 local c = st.clone(s); |
|
354 assert.same(s, c); |
|
355 end); |
|
356 |
|
357 it("works", function () |
|
358 assert.has_error(function () |
|
359 st.clone("this is not a stanza"); |
|
360 end); |
|
361 end); |
|
362 end); |
349 end); |
363 end); |