Commit dc12b017 authored by François Perrad's avatar François Perrad
Browse files

refactor with %#

parent 86b50052
......@@ -796,7 +796,7 @@ unpackers = setmetatable({
elseif k > 0xDF then
return function (c, val) return val - 0x100 end
else
return function () error("unpack '" .. format('0x%X', k) .. "' is unimplemented") end
return function () error("unpack '" .. format('%#x', k) .. "' is unimplemented") end
end
end
})
......
......@@ -547,7 +547,7 @@ unpackers = setmetatable({
elseif k > 0xDF then
return function (c, val) return val - 0x100 end
else
return function () error("unpack '" .. format('0x%X', k) .. "' is unimplemented") end
return function () error("unpack '" .. format('%#x', k) .. "' is unimplemented") end
end
end
})
......
......@@ -42,7 +42,7 @@ error_like( function ()
error_like( function ()
mp.unpack(string.char(0xC1))
end,
"unpack '0xC1' is unimplemented" )
"unpack '0xc1' is unimplemented" )
is( mp.unpack(mp.pack("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