Module:Hani-sortkey/testcases
Jump to navigation
Jump to search
- 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
- Leizhou Min modules
- Southern Pinghua 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
- Dungan modules
- Chinese modules
- Okinoerabu modules
- Northern Min modules
- Japanese modules
- Kunigami modules
- Middle Chinese modules
- Classical Tibetan modules
- Hachijō modules
- Min Nan modules
- Miyako modules
- Okinawan modules
- Bailang modules
- Wu modules
- Teochew modules
- Bouyei modules
- Bala modules
- Tuyuhun modules
- Xianbei modules
- Yaeyama modules
- Xiang modules
- E modules
- Tokunoshima modules
- Huizhou modules
- Central Min modules
- Middle Mongol modules
- Longyan Min modules
- Northern Amami Ōshima modules
- Cantonese modules
- Eastern Min modules
- Waxiang modules
- Southern Amami Ōshima modules
- Caolan modules
- Mandarin modules
- Tày modules
- Middle Vietnamese modules
- Alchuka modules
- Sui modules
- Daur modules
- Biao-Jiao Mien modules
- Hainanese modules
- Panyi Bai modules
- Old Uyghur modules
- Khitan modules
- Hailufeng Min modules
- Biyo modules
- Buyeo modules
- Hokkien modules
- Old Japanese modules
- Southern Bai modules
- Rouran modules
- Testcase modules by script
- Testcase modules
- Han script testcase modules
- Chinese Pidgin English testcase modules
- Yonaguni testcase modules
- Leizhou Min testcase modules
- Southern Pinghua 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
- Dungan testcase modules
- Chinese testcase modules
- Okinoerabu testcase modules
- Northern Min testcase modules
- Japanese testcase modules
- Kunigami testcase modules
- Middle Chinese testcase modules
- Classical Tibetan testcase modules
- Hachijō testcase modules
- Min Nan testcase modules
- Miyako testcase modules
- Okinawan testcase modules
- Bailang testcase modules
- Wu testcase modules
- Teochew testcase modules
- Bouyei testcase modules
- Bala testcase modules
- Tuyuhun testcase modules
- Xianbei testcase modules
- Yaeyama testcase modules
- Xiang testcase modules
- E testcase modules
- Tokunoshima testcase modules
- Huizhou testcase modules
- Central Min testcase modules
- Middle Mongol testcase modules
- Longyan Min testcase modules
- Northern Amami Ōshima testcase modules
- Cantonese testcase modules
- Eastern Min testcase modules
- Waxiang testcase modules
- Southern Amami Ōshima testcase modules
- Caolan testcase modules
- Mandarin testcase modules
- Tày testcase modules
- Middle Vietnamese testcase modules
- Alchuka testcase modules
- Sui testcase modules
- Daur testcase modules
- Biao-Jiao Mien testcase modules
- Hainanese testcase modules
- Panyi Bai testcase modules
- Old Uyghur testcase modules
- Khitan testcase modules
- Hailufeng Min testcase modules
- Biyo testcase modules
- Buyeo testcase modules
- Hokkien testcase modules
- Old Japanese testcase modules
- Southern Bai testcase modules
- Rouran testcase modules