<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://linguifex.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3Aja%2Ftestcases</id>
	<title>Module:ja/testcases - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://linguifex.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3Aja%2Ftestcases"/>
	<link rel="alternate" type="text/html" href="https://linguifex.com/w/index.php?title=Module:ja/testcases&amp;action=history"/>
	<updated>2026-04-23T03:12:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://linguifex.com/w/index.php?title=Module:ja/testcases&amp;diff=495563&amp;oldid=prev</id>
		<title>Sware: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://linguifex.com/w/index.php?title=Module:ja/testcases&amp;diff=495563&amp;oldid=prev"/>
		<updated>2026-04-21T12:44:15Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:44, 21 April 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Sware</name></author>
	</entry>
	<entry>
		<id>https://linguifex.com/w/index.php?title=Module:ja/testcases&amp;diff=495562&amp;oldid=prev</id>
		<title>wikt&gt;Theknightwho: Undo revision 80675802 by Theknightwho (talk) Apparently we do.</title>
		<link rel="alternate" type="text/html" href="https://linguifex.com/w/index.php?title=Module:ja/testcases&amp;diff=495562&amp;oldid=prev"/>
		<updated>2024-07-10T17:07:32Z</updated>

		<summary type="html">&lt;p&gt;Undo revision &lt;a href=&quot;/wiki/Special:Diff/80675802&quot; title=&quot;Special:Diff/80675802&quot;&gt;80675802&lt;/a&gt; by &lt;a href=&quot;/wiki/Special:Contributions/Theknightwho&quot; title=&quot;Special:Contributions/Theknightwho&quot;&gt;Theknightwho&lt;/a&gt; (&lt;a href=&quot;/w/index.php?title=User_talk:Theknightwho&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Theknightwho (page does not exist)&quot;&gt;talk&lt;/a&gt;) Apparently we do.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Unit tests for [[Module:ja]]. Click talk page to run tests.&lt;br /&gt;
local p = require(&amp;#039;Module:UnitTests&amp;#039;)&lt;br /&gt;
local m = require(&amp;#039;Module:ja&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
function p:r2k(original, katakana)&lt;br /&gt;
	self:equals(original, m.romaji_to_kata(original), katakana)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:script_detection(original, script)&lt;br /&gt;
	self:equals(original, m.script(original), script)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:k2h(original, hiragana)&lt;br /&gt;
	self:equals(original, m.kata_to_hira(original), hiragana)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:h2k(original, katakana)&lt;br /&gt;
	self:equals(original, m.hira_to_kata(original), katakana)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:other(fun, original, output)&lt;br /&gt;
	local mf&lt;br /&gt;
&lt;br /&gt;
	if fun == &amp;#039;count_morae&amp;#039; then mf = m.count_morae&lt;br /&gt;
	elseif fun == &amp;#039;rm_spaces_hyphens&amp;#039; then mf = m.rm_spaces_hyphens&lt;br /&gt;
	elseif fun == &amp;#039;kanji_grade&amp;#039; then mf = m.kanji_grade&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	self:equals(fun .. &amp;#039;: &amp;#039; .. original, mf(original), output)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test_all()&lt;br /&gt;
	self:r2k(&amp;quot;ayekikye vyewifue&amp;quot;, &amp;quot;アイェキキェ ヴィェウィフエ&amp;quot;)&lt;br /&gt;
	self:r2k(&amp;quot;shinkansen&amp;quot;, &amp;quot;シンカンセン&amp;quot;)&lt;br /&gt;
	self:r2k(&amp;quot;shin&amp;#039;i&amp;quot;, &amp;quot;シンイ&amp;quot;)&lt;br /&gt;
	self:r2k(&amp;quot;shin&amp;#039;ya shinya&amp;quot;, &amp;quot;シンヤ シニャ&amp;quot;)&lt;br /&gt;
	self:r2k(&amp;quot;na ni nu ne no nya nyu nye nyo&amp;quot;, &amp;quot;ナ ニ ヌ ネ ノ ニャ ニュ ニェ ニョ&amp;quot;)&lt;br /&gt;
	self:r2k(&amp;quot;bakkurasshu&amp;quot;, &amp;quot;バックラッシュ&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
	self:script_detection(&amp;#039;あいこくしん愛国心メ&amp;#039;, &amp;#039;Hira+Kana+Hani&amp;#039;)&lt;br /&gt;
	self:script_detection(&amp;#039;あいこくしん愛国心&amp;#039;, &amp;#039;Hira+Hani&amp;#039;)&lt;br /&gt;
	self:script_detection(&amp;#039;ァー&amp;#039;, &amp;#039;Kana&amp;#039;)&lt;br /&gt;
	self:script_detection(&amp;#039;あっぷるringo&amp;#039;, &amp;#039;Hira+Romaji&amp;#039;)&lt;br /&gt;
	self:script_detection(&amp;#039;ニッポン1１&amp;#039;, &amp;#039;Kana+Number&amp;#039;)&lt;br /&gt;
	self:script_detection(&amp;#039;ニッポンｎｉｐｐｏｎ&amp;#039;, &amp;#039;Kana+Romaji&amp;#039;)&lt;br /&gt;
	self:script_detection(&amp;#039;一つ&amp;#039;, &amp;#039;Hira+Hani&amp;#039;)&lt;br /&gt;
	self:script_detection(&amp;#039;〆る&amp;#039;, &amp;#039;Hira+Abbreviation&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	self:k2h(&amp;#039;アメリカじん&amp;#039;, &amp;#039;あめりかじん&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	self:h2k(&amp;#039;うぃきぺでぃあ　デス&amp;#039;, &amp;#039;ウィキペディア　デス&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	self:other(&amp;#039;count_morae&amp;#039;, &amp;#039;しゃっきんジャー&amp;#039;, 6)&lt;br /&gt;
&lt;br /&gt;
	self:other(&amp;#039;rm_spaces_hyphens&amp;#039;, &amp;#039;ishu kakutōgi sen&amp;#039;, &amp;#039;ishukakutōgisen&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	self:other(&amp;#039;kanji_grade&amp;#039;, &amp;#039;立&amp;#039;, 1)&lt;br /&gt;
	self:other(&amp;#039;kanji_grade&amp;#039;, &amp;#039;尊立&amp;#039;, 6)&lt;br /&gt;
	self:other(&amp;#039;kanji_grade&amp;#039;, &amp;#039;藉尊立&amp;#039;, 9)&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>wikt&gt;Theknightwho</name></author>
	</entry>
</feed>