Module:Testharness/testmodule

local p = {}

function p.dump_args(frame) local arg_names = {} for k in pairs(frame.args) do       table.insert(arg_names, k)    end table.sort(arg_names)

local message = '' for _, k in ipairs(arg_names) do       message = message .. mw.ustring.format(((type(k) == 'number') and '%d' or '%q') .. ' => %q\n', k, frame.args[k]) end return message end

return p