equal
deleted
inserted
replaced
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 () |