spec/util_stanza_spec.lua
changeset 11210 f051394762ff
parent 11092 1f84d0e4d0c4
parent 11209 9d1e21c23784
child 11790 39164ea2ab9e
equal deleted inserted replaced
11208:ae2a11066001 11210: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 ()