<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AAncient_Greek%2Ftestcases</id>
	<title>Module:Ancient Greek/testcases - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AAncient_Greek%2Ftestcases"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Ancient_Greek/testcases&amp;action=history"/>
	<updated>2026-04-09T21:05:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Ancient_Greek/testcases&amp;diff=135221&amp;oldid=prev</id>
		<title>imported&gt;Erutuon: add ALA-LC examples from Module:Ancient Greek (ALA-LC)/testcases</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Ancient_Greek/testcases&amp;diff=135221&amp;oldid=prev"/>
		<updated>2019-04-15T18:31:32Z</updated>

		<summary type="html">&lt;p&gt;add ALA-LC examples from &lt;a href=&quot;/index.php?title=Module:Ancient_Greek_(ALA-LC)/testcases&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Module:Ancient Greek (ALA-LC)/testcases (page does not exist)&quot;&gt;Module:Ancient Greek (ALA-LC)/testcases&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;--[=[&lt;br /&gt;
	Modified from [[wikt:Module:grc-translit/testcases]].&lt;br /&gt;
]=]&lt;br /&gt;
&lt;br /&gt;
local tests = require(&amp;#039;Module:UnitTests&amp;#039;)&lt;br /&gt;
local translit = require(&amp;#039;Module:Ancient Greek&amp;#039;)&lt;br /&gt;
local decompose = mw.ustring.toNFC&lt;br /&gt;
&lt;br /&gt;
local function tag(text)&lt;br /&gt;
	return &amp;#039;&amp;lt;span lang=&amp;quot;grc&amp;quot;&amp;gt;&amp;#039; .. text .. &amp;#039;&amp;lt;/span&amp;gt;&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function tests:check_output(term, Wiktionary, ALA_LC)&lt;br /&gt;
	tests:equals(&lt;br /&gt;
		tag(term),&lt;br /&gt;
		decompose(translit.transliterate(term, &amp;quot;Wiktionary&amp;quot;)),&lt;br /&gt;
		decompose(Wiktionary)&lt;br /&gt;
	)&lt;br /&gt;
	&lt;br /&gt;
	tests:equals(&lt;br /&gt;
		tag(term),&lt;br /&gt;
		decompose(translit.transliterate(term, &amp;quot;ALA-LC&amp;quot;)),&lt;br /&gt;
		decompose(ALA_LC)&lt;br /&gt;
	)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function tests:test_translit()&lt;br /&gt;
	local examples = {&lt;br /&gt;
		{ &amp;#039;λόγος&amp;#039;, &amp;#039;lógos&amp;#039;, &amp;#039;logos&amp;#039; },&lt;br /&gt;
		{ &amp;#039;σφίγξ&amp;#039;, &amp;#039;sphínx&amp;#039;, &amp;#039;sphinx&amp;#039; },&lt;br /&gt;
		{ &amp;#039;ϝάναξ&amp;#039;, &amp;#039;wánax&amp;#039;, &amp;#039;wanax&amp;#039; },&lt;br /&gt;
		{ &amp;#039;οἷαι&amp;#039;, &amp;#039;hoîai&amp;#039;, &amp;#039;hoiai&amp;#039; },&lt;br /&gt;
		&lt;br /&gt;
		-- test u/y&lt;br /&gt;
		{ &amp;#039;ταῦρος&amp;#039;, &amp;#039;taûros&amp;#039;, &amp;#039;tauros&amp;#039; },&lt;br /&gt;
		{ &amp;#039;νηῦς&amp;#039;, &amp;#039;nēûs&amp;#039;, &amp;#039;nēus&amp;#039; },&lt;br /&gt;
		{ &amp;#039;σῦς&amp;#039;, &amp;#039;sûs&amp;#039;, &amp;#039;sys&amp;#039; },&lt;br /&gt;
		{ &amp;#039;ὗς&amp;#039;, &amp;#039;hûs&amp;#039;, &amp;#039;hys&amp;#039; },&lt;br /&gt;
		{ &amp;#039;γυῖον&amp;#039;, &amp;#039;guîon&amp;#039;, &amp;#039;guion&amp;#039; },&lt;br /&gt;
		{ &amp;#039;ἀναῡ̈τέω&amp;#039;, &amp;#039;anaṻtéō&amp;#039;, &amp;#039;anayteō&amp;#039; },&lt;br /&gt;
		{ &amp;#039;δαΐφρων&amp;#039;, &amp;#039;daḯphrōn&amp;#039;, &amp;#039;daiphrōn&amp;#039; },&lt;br /&gt;
		&lt;br /&gt;
		-- test length&lt;br /&gt;
		{ &amp;#039;τῶν&amp;#039;, &amp;#039;tôn&amp;#039;, &amp;#039;tōn&amp;#039; },&lt;br /&gt;
		{ &amp;#039;τοὶ&amp;#039;, &amp;#039;toì&amp;#039;, &amp;#039;toi&amp;#039; },&lt;br /&gt;
		{ &amp;#039;τῷ&amp;#039;, &amp;#039;tôi&amp;#039;, &amp;#039;tō&amp;#039; },&lt;br /&gt;
		{ &amp;#039;τούτῳ&amp;#039;, &amp;#039;toútōi&amp;#039;, &amp;#039;toutō&amp;#039; },&lt;br /&gt;
		{ &amp;#039;σοφίᾳ&amp;#039;, &amp;#039;sophíāi&amp;#039;, &amp;#039;sophia&amp;#039; },&lt;br /&gt;
		{ &amp;#039;μᾱ̆νός&amp;#039;, &amp;#039;mānós&amp;#039;, &amp;#039;manos&amp;#039; }, -- should perhaps be mā̆nos&lt;br /&gt;
		&lt;br /&gt;
		-- test h&lt;br /&gt;
		{ &amp;#039;ὁ&amp;#039;, &amp;#039;ho&amp;#039;, &amp;#039;ho&amp;#039; },&lt;br /&gt;
		{ &amp;#039;οἱ&amp;#039;, &amp;#039;hoi&amp;#039;, &amp;#039;hoi&amp;#039; },&lt;br /&gt;
		{ &amp;#039;εὕρισκε&amp;#039;, &amp;#039;heúriske&amp;#039;, &amp;#039;heuriske&amp;#039; },&lt;br /&gt;
		{ &amp;#039;ὑϊκός&amp;#039;, &amp;#039;huïkós&amp;#039;, &amp;#039;hyikos&amp;#039; },&lt;br /&gt;
		{ &amp;#039;πυρρός&amp;#039;, &amp;#039;purrhós&amp;#039;, &amp;#039;pyrrhos&amp;#039; },&lt;br /&gt;
		{ &amp;#039;ῥέω&amp;#039;, &amp;#039;rhéō&amp;#039;, &amp;#039;rheō&amp;#039; },&lt;br /&gt;
		{ &amp;#039;σάἁμον&amp;#039;, &amp;#039;sáhamon&amp;#039;, &amp;#039;sahamon&amp;#039; },&lt;br /&gt;
	&lt;br /&gt;
		-- test capitals&lt;br /&gt;
		{ &amp;#039;Ὀδυσσεύς&amp;#039;, &amp;#039;Odusseús&amp;#039;, &amp;#039;Odysseus&amp;#039; },&lt;br /&gt;
		{ &amp;#039;Εἵλως&amp;#039;, &amp;#039;Heílōs&amp;#039;, &amp;#039;Heilōs&amp;#039; },&lt;br /&gt;
		{ &amp;#039;ᾍδης&amp;#039;, &amp;#039;Hā́idēs&amp;#039;, &amp;#039;Hadēs&amp;#039; },&lt;br /&gt;
		{ &amp;#039;ἡ Ἑλήνη&amp;#039;, &amp;#039;hē Helḗnē&amp;#039;, &amp;#039;hē Helēnē&amp;#039; },&lt;br /&gt;
		&lt;br /&gt;
		-- punctuation&lt;br /&gt;
		{ &amp;#039;ἔχεις μοι εἰπεῖν, ὦ Σώκρατες, ἆρα διδακτὸν ἡ ἀρετή;&amp;#039;, &amp;#039;ékheis moi eipeîn, ô Sṓkrates, âra didaktòn hē aretḗ?&amp;#039;, &amp;#039;echeis moi eipein, ō Sōkrates, ara didakton hē aretē?&amp;#039;},&lt;br /&gt;
		{ &amp;#039;τί τηνικάδε ἀφῖξαι, ὦ Κρίτων; ἢ οὐ πρῲ ἔτι ἐστίν;&amp;#039;, &amp;#039;tí tēnikáde aphîxai, ô Krítōn? ḕ ou prṑi éti estín?&amp;#039;, &amp;#039;ti tēnikade aphixai, ō Kritōn? ē ou prō eti estin?&amp;#039; },&lt;br /&gt;
		-- This ought to be colon, but sadly that cannot be.&lt;br /&gt;
		{ &amp;#039;τούτων φωνήεντα μέν ἐστιν ἑπτά· α ε η ι ο υ ω.&amp;#039;, &amp;#039;toútōn phōnḗenta mén estin heptá; a e ē i o u ō.&amp;#039;, &amp;#039;toutōn phōnēenta men estin hepta; a e ē i o y ō.&amp;#039; },&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
	self:iterate(examples, &amp;#039;check_output&amp;#039;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return tests&lt;/div&gt;</summary>
		<author><name>imported&gt;Erutuon</name></author>
	</entry>
</feed>