local p = require("Module:UnitTests")
local get_ietf_parts = require("Module:Lang/sandbox").get_ietf_parts
local prepare
function p:check(code, expected) self:equals_deep(code,, prepare(expected))end
function p:test local examples = self:iterate(examples, "check")end
function prepare(subtag_table) if not next(subtag_table) then return subtag_table end for i = 1, 4 do if subtag_table[i]
return p