Module:User:Oyunqi/ug-common1/testcases

-- Unit tests for Module:User:Oyunqi/ug-common1. local p = require('Module:UnitTests') local m = require('Module:User:Oyunqi/ug-common1') local test_nouns = require('Module:User:Oyunqi/ug-common/testcases/data')

function p:test_checkWord tongue, v2,c2 = m.checkWord("ئالما", "1", "", "") self:equals("ئالما auto", tongue, "back") self:equals("ئالما auto", v2, "ى") tongue, v2,c2 = m.checkWord("ئالما", "1", "ى", "") self:equals("ئالما", tongue, "back") self:equals("ئالما", v2, "ى") tongue, v2,c2 = m.checkWord("قازاقچە", "1", "", "") self:equals("قازاقچە auto", tongue, "back") self:equals("قازاقچە auto", v2, "ى") tongue, v2,c2 = m.checkWord("قازاقچە", "1", "ى", "") self:equals("قازاقچە", tongue, "back") self:equals("قازاقچە", v2, "ى") end

return p