Module:User:ObnoxiousCoder/hit-common/testcases

local hit_common = require('Module:User:ObnoxiousCoder/hit-common') local tests = require('Module:UnitTests')

function tests:test_naive_transliteration local testcases = { {"attaš", "at-ta-aš"}, {"zaḫḫiyauwanzi", "za-aḫ-ḫi-ya-ú-wa-an-zi"}, {"wātar", "wa-a-tar"}, {"arāš", "a-ra-a-aš"}, {"alpaš", "al-pa-aš"}, {"išḫarwanza", "iš-ḫar-wa-an-za"}, {"ēšḫar", "e-eš-ḫar"}, {"ēšḫarnuzzi", "e-eš-ḫar-nu-uz-zi"}, {"ēšḫaškanza", "e-eš-ḫa-aš-kán-za"}, {"alpuwaš", "al-pu-wa-aš"}, {"keššar", "ke-eš-šar"}, {"taḫurwailin", "ta-ḫur-wa-i-li-in"}, {"peran", "pé-ra-an"}, {"pittuliyaš", "pít-tu-li-ya-aš"}, {"kišat", "ki-ša-at"},

}	tests:iterate(		testcases, 		function(self, input, expected)		self:equals(input, hit_common.naive_transliteration(input), expected)	end) end return tests