Module:ISO 639 name/testcases/ISO 639-2 code from name: Difference between revisions
Jump to navigation
Jump to search
en>Gonnym m (Gonnym moved page Module:ISO 639 name/testcases/ISO 639-2 name to code to Module:ISO 639 name/testcases/ISO 639-2 code from name without leaving a redirect) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 15:58, 17 December 2022
Documentation for this module may be created at Module:ISO 639 name/testcases/ISO 639-2 code from name/doc
local p = require("Module:UnitTests")
local function main(self, data, iso_number)
local language_list = mw.loadData(data)
require("Module:Lang/documentor tool").testcases_iso_name_to_code(self, {language_list = language_list, iso_number = iso_number})
end
function p:test_iso_639_2_name_to_code()
main(self, "Module:Language/data/ISO 639-2", "2")
end
function p:test_iso_639_2B_name_to_code()
main(self, "Module:Language/data/ISO 639-2B", "2B")
end
return p