Module:ug-common/testcases

-- Unit tests for Module:ug-common. local p = require('Module:UnitTests') local m = require('Module:ug-common')

function p:test_checkCommon --getlast local base, v, c = m.getLast("ئۇ") self:equals("ئۇ", base .. " " .. v .. " " .. c, "ئ ۇ ") local base, v, c = m.getLast("دوختۇر") self:equals("دوختۇر", base .. " " .. v .. " " .. c, "دوخت ۇ ر") local base, v, c = m.getLast("كەپتەرخانا") self:equals("كەپتەرخانا", base .. " " .. v .. " " .. c, "كەپتەرخان ا ") local base, v, c = m.getLast("جۇڭخۇا") self:equals("جۇڭخۇا", base .. " " .. v .. " " .. c, "جۇڭخ ۇا ") local base, v, c = m.getLast("a:bcde") if v then self:equals("a:bcde", base .. " " .. v .. " " .. c, " ") end --checkTongue local ttt = m.checkTongue("ئالما") self:equals("ئالما", ttt, "back") ttt = m.checkCentral("بىلىم") self:equals("بىلىم", ttt, "front") end

return p