View source for Module:Ancient Greek/typing/testcases
MyWikiBiz, Author Your Legacy — Wednesday July 09, 2025
Jump to navigationJump to searchYou do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
local tests = require("Module:UnitTests")
local tag = mw.text.tag
local decompose = mw.ustring.toNFD
local Latin_to_Greek = require("Module:Ancient Greek/typing").to_Greek
local function tag_Greek(text)
return tag("span", { lang = "grc" }, text)
end
local function code(text)
return tag("code", nil, text)
end
local options = { display = tag_Greek, show_difference = true }
function tests:check(example, expected)
self:equals(code(example),
decompose(Latin_to_Greek(example)),
decompose(expected),
options)
end
000
1:0
Template used on this page:
Return to Module:Ancient Greek/typing/testcases.