Module:Ancient Greek/typing/testcases explained

local tests = require("Module:UnitTests")local tag = mw.text.taglocal decompose = mw.ustring.toNFDlocal Latin_to_Greek = require("Module:Ancient Greek/typing").to_Greek

local function tag_Greek(text) return tag("span", , text)end

local function code(text) return tag("code", nil, text)end

local options = function tests:check(example, expected) self:equals(code(example), decompose(Latin_to_Greek(example)), decompose(expected), options)end

function tests:test local examples = self:iterate(examples, "check")end

return tests