Commit 1b29a9fa authored by François Perrad's avatar François Perrad

refactor with %#

parent cdf10a08
......@@ -781,7 +781,7 @@ for k, v in pairs(direct_small) do
end
end
setmetatable(decoders, {
__index = function (t, k) error("decode '" .. format('0x%X', k) .. "' is unimplemented") end
__index = function (t, k) error("decode '" .. format('%#x', k) .. "' is unimplemented") end
})
local function cursor_string (str)
......
......@@ -640,7 +640,7 @@ for k, v in pairs(direct_small) do
end
end
setmetatable(decoders, {
__index = function (t, k) error("decode '" .. format('0x%X', k) .. "' is unimplemented") end
__index = function (t, k) error("decode '" .. format('%#x', k) .. "' is unimplemented") end
})
local function cursor_string (str)
......
......@@ -107,7 +107,7 @@ error_like( function ()
error_like( function ()
c.decode(string.char(0x1C))
end,
"decode '0x1C' is unimplemented" )
"decode '0x1c' is unimplemented" )
is( c.decode(c.encode("text")), "text" )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment