- The following documentation is located at Module:Hani-sortkey/testcases/documentation. [edit] Categories were auto-generated by Module:module categorization. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • sandbox
2 of 3 tests failed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
PS/2接口 (pì-áisi èr jiēkǒu) | PS/2手08口00 | PS2手08口00 | |
命裡有時終須有,命裡無時莫強求 / 命里有时终须有,命里无时莫强求 (mìng lǐ yǒu shí zhōngxū yǒu, mìng lǐ wú shí mò qiǎngqiú) | 口05衣07月02日06糸05頁03月02,口05衣07火08日06艸07弓08水02 | 口05衣07月02日06糸05頁03月02口05衣07火08日06艸07弓08水02 | |
⿱𡩧⿺進⿰貝招 / ⿱𡩧⿺进⿰贝招 (zhāocáijìnbǎo) | 宀37 | 宀37 |
local tests = require("Module:UnitTests")
local makeSortKey = require("Module:Hani-sortkey").makeSortKey
local full_link = require("Module:links").full_link
local zh = require("Module:languages").getByCode("zh")
local function link(str)
return full_link{ term = str, lang = zh }
end
local function code(str)
return '<code>' .. str .. '</code>'
end
local options = { display = code }
function tests:check(example, expected)
self:equals(link(example),
makeSortKey(example),
expected,
options)
end
function tests:test()
local examples = {
{ "PS/2接口", "PS/2手08口00" },
{ "命裡有時終須有,命裡無時莫強求", "口05衣07月02日06糸05頁03月02,口05衣07火08日06艸07弓08水02" },
{ "⿱𡩧⿺進⿰貝招", "宀37" },
}
self:iterate(examples, "check")
end
return tests
Categories:
- Failing testcase modules
- Sortkey-generating modules by script
- Han script modules
- Sortkey-generating modules
- Chinese Pidgin English modules
- Yonaguni modules
- Daur modules
- Southern Pinghua modules
- Shaojiang Min modules
- Jie modules
- Datian Min modules
- Central Bai modules
- Translingual modules
- Tuoba modules
- Ai-Cham modules
- Shaozhou Tuhua modules
- Zhuang modules
- Gaya modules
- Sichuanese modules
- Northern Pinghua modules
- Goguryeo modules
- Kikai modules
- Vietnamese modules
- Yoron modules
- Taishanese modules
- Zauzou modules
- Kyakala modules
- Sanxiang Min modules
- Nùng modules
- Literary Chinese modules
- Zakhring modules
- Gan modules
- Baekje modules
- Old Chinese modules
- Wuhuan modules
- Lama Bai modules
- Hakka modules
- Zhenan Min modules
- Puxian Min modules
- Yemaek modules
- Jin modules
- Macau Pidgin Portuguese modules
- Okinoerabu modules
- Chinese modules
- Bala modules
- Northern Min modules
- Japanese modules
- Kunigami modules
- Leizhou Min modules
- Dungan modules
- Hachijō modules
- Old Japanese modules
- Miyako modules
- Caolan modules
- E modules
- Wu modules
- Teochew modules
- Hainanese modules
- Min Nan modules
- Tuyuhun modules
- Xianbei modules
- Yaeyama modules
- Xiang modules
- Bouyei modules
- Tokunoshima modules
- Classical Tibetan modules
- Mandarin modules
- Central Min modules
- Longyan Min modules
- Middle Mongol modules
- Cantonese modules
- Eastern Min modules
- Waxiang modules
- Southern Amami Ōshima modules
- Northern Amami Ōshima modules
- Sui modules
- Tày modules
- Middle Vietnamese modules
- Alchuka modules
- Hokkien modules
- Middle Chinese modules
- Biao-Jiao Mien modules
- Okinawan modules
- Bailang modules
- Old Uyghur modules
- Khitan modules
- Hailufeng Min modules
- Biyo modules
- Buyeo modules
- Panyi Bai modules
- Huizhou modules
- Southern Bai modules
- Rouran modules
- Testcase modules by script
- Testcase modules
- Han script testcase modules
- Chinese Pidgin English testcase modules
- Yonaguni testcase modules
- Daur testcase modules
- Southern Pinghua testcase modules
- Shaojiang Min testcase modules
- Jie testcase modules
- Datian Min testcase modules
- Central Bai testcase modules
- Translingual testcase modules
- Tuoba testcase modules
- Ai-Cham testcase modules
- Shaozhou Tuhua testcase modules
- Zhuang testcase modules
- Gaya testcase modules
- Sichuanese testcase modules
- Northern Pinghua testcase modules
- Goguryeo testcase modules
- Kikai testcase modules
- Vietnamese testcase modules
- Yoron testcase modules
- Taishanese testcase modules
- Zauzou testcase modules
- Kyakala testcase modules
- Sanxiang Min testcase modules
- Nùng testcase modules
- Literary Chinese testcase modules
- Zakhring testcase modules
- Gan testcase modules
- Baekje testcase modules
- Old Chinese testcase modules
- Wuhuan testcase modules
- Lama Bai testcase modules
- Hakka testcase modules
- Zhenan Min testcase modules
- Puxian Min testcase modules
- Yemaek testcase modules
- Jin testcase modules
- Macau Pidgin Portuguese testcase modules
- Okinoerabu testcase modules
- Chinese testcase modules
- Bala testcase modules
- Northern Min testcase modules
- Japanese testcase modules
- Kunigami testcase modules
- Leizhou Min testcase modules
- Dungan testcase modules
- Hachijō testcase modules
- Old Japanese testcase modules
- Miyako testcase modules
- Caolan testcase modules
- E testcase modules
- Wu testcase modules
- Teochew testcase modules
- Hainanese testcase modules
- Min Nan testcase modules
- Tuyuhun testcase modules
- Xianbei testcase modules
- Yaeyama testcase modules
- Xiang testcase modules
- Bouyei testcase modules
- Tokunoshima testcase modules
- Classical Tibetan testcase modules
- Mandarin testcase modules
- Central Min testcase modules
- Longyan Min testcase modules
- Middle Mongol testcase modules
- Cantonese testcase modules
- Eastern Min testcase modules
- Waxiang testcase modules
- Southern Amami Ōshima testcase modules
- Northern Amami Ōshima testcase modules
- Sui testcase modules
- Tày testcase modules
- Middle Vietnamese testcase modules
- Alchuka testcase modules
- Hokkien testcase modules
- Middle Chinese testcase modules
- Biao-Jiao Mien testcase modules
- Okinawan testcase modules
- Bailang testcase modules
- Old Uyghur testcase modules
- Khitan testcase modules
- Hailufeng Min testcase modules
- Biyo testcase modules
- Buyeo testcase modules
- Panyi Bai testcase modules
- Huizhou testcase modules
- Southern Bai testcase modules
- Rouran testcase modules