Comparison

spec/util_stanza_spec.lua @ 11206:f051394762ff

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Wed, 11 Nov 2020 16:09:55 +0100
parent 11088:1f84d0e4d0c4
parent 11205:9d1e21c23784
child 11786:39164ea2ab9e
comparison
equal deleted inserted replaced
11204:ae2a11066001 11206:f051394762ff
295 } 295 }
296 local invalid_data = { 296 local invalid_data = {
297 ["number"] = 1234, ["table"] = {}; 297 ["number"] = 1234, ["table"] = {};
298 ["utf8"] = string.char(0xF4, 0x90, 0x80, 0x80); 298 ["utf8"] = string.char(0xF4, 0x90, 0x80, 0x80);
299 ["nil"] = "nil"; ["boolean"] = true; 299 ["nil"] = "nil"; ["boolean"] = true;
300 ["control characters"] = "\0\1\2\3";
300 }; 301 };
301 302
302 for value_type, value in pairs(invalid_names) do 303 for value_type, value in pairs(invalid_names) do
303 it(value_type.." in tag names", function () 304 it(value_type.." in tag names", function ()
304 assert.error_matches(function () 305 assert.error_matches(function ()