Module:ISO 639 name/testcases/ISO 639 deprecated code from name

From WikiCigar
< Module:ISO 639 name‎ | testcases
Revision as of 15:58, 17 December 2022 by Hutah (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation for this module may be created at Module:ISO 639 name/testcases/ISO 639 deprecated code from name/doc

local p = require("Module:UnitTests")

local function main(self, language_list, iso_number)
	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_1_deprecated_name_to_code()
	local language_list = require("Module:Language/data/ISO 639 deprecated").deprecated_1
	main(self, language_list, "1")
end

function p:test_iso_639_2_deprecated_name_to_code()
	local language_list = require("Module:Language/data/ISO 639 deprecated").deprecated_2
	main(self, language_list, "2")
end

function p:test_iso_639_2B_deprecated_name_to_code()
	local language_list = require("Module:Language/data/ISO 639 deprecated").deprecated_2B
	main(self, language_list, "2B")
end

function p:test_iso_639_3_deprecated_name_to_code()
	local language_list = require("Module:Language/data/ISO 639 deprecated").deprecated_3
	main(self, language_list, "3")
end

function p:test_iso_639_5_deprecated_name_to_code()
	local language_list = require("Module:Language/data/ISO 639 deprecated").deprecated_5
	main(self, language_list, "5")
end

return p