Modul:Hani-sortkey/testcases
Penampilan
- Berikut merupakan pendokumenan yang terletak di Modul:Hani-sortkey/testcases/doc. [sunting] Kategori dijana secara automatik oleh Modul:module categorization. [sunting]
- Pautan berguna: laman akar • sublaman • pautan • transklusi • modul ujian • kotak pasir
3 of 3 tests failed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
PS/2接口 | PS/2手08口00 | PS2手08口00 | |
命裡有時終須有,命裡無時莫強求 | 口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 | |
⿺辶⿳穴⿲月⿱⿲幺言幺⿲長馬長刂心⿺辶⿳穴⿲月⿱⿲幺言幺⿲長馬長刂心麵 | 辵54辵54麥09 | ⿺辵00⿳穴00⿲月00⿱⿲幺00言00幺00⿲長00馬00長00刀00心00⿺辵00⿳穴00⿲月00⿱⿲幺00言00幺00⿲長00馬00長00刀00心00麥09 |
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" },
{ "⿺辶⿳穴⿲月⿱⿲幺言幺⿲長馬長刂心⿺辶⿳穴⿲月⿱⿲幺言幺⿲長馬長刂心麵", "辵54辵54麥09" },
}
self:iterate(examples, "check")
end
return tests
Kategori:
- Failing testcase modules
- Modul Sortkey-generating mengikut tulisan
- Tulisan Han modules
- Modul Sortkey-generating
- Chinese Pidgin English 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
- Min Timur modules
- Sichuanese modules
- Northern Pinghua modules
- Goguryeo modules
- Vietnam modules
- Taishanese modules
- Zauzou modules
- Kyakala modules
- Sanxiang Min modules
- Nùng modules
- Hokkien modules
- Zakhring modules
- Gan modules
- Baekje modules
- Cina Kuno modules
- Kantonis modules
- Lama Bai modules
- Hakka modules
- Zhenan Min modules
- Jin modules
- Macau Pidgin Portuguese modules
- Cina modules
- Northern Min modules
- Jepun modules
- Caolan modules
- E modules
- Wu modules
- Teochew modules
- Tuyuhun modules
- Xianbei modules
- Puxian Min modules
- Xiang modules
- Hachijō modules
- Min Nan modules
- Bouyei modules
- Mongol Pertengahan modules
- Biyo modules
- Longyan Min modules
- Huizhou modules
- Wuhuan modules
- Central Min modules
- Waxianghua modules
- Tibet Klasik modules
- Daur modules
- Mandarin modules
- Tày modules
- Middle Vietnamese modules
- Alchuka modules
- Dungan modules
- Literary Chinese modules
- Biao-Jiao Mien modules
- Sui modules
- Bailang modules
- Middle Chinese modules
- Khitan modules
- Hailufeng Min modules
- Bala modules
- Buyeo modules
- Panyi Bai modules
- Hainanese modules
- Southern Bai modules
- Rouran modules
- Modul Testcase mengikut tulisan
- Modul Testcase
- Tulisan Han testcase modules
- Chinese Pidgin English 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
- Min Timur testcase modules
- Sichuanese testcase modules
- Northern Pinghua testcase modules
- Goguryeo testcase modules
- Vietnam testcase modules
- Taishanese testcase modules
- Zauzou testcase modules
- Kyakala testcase modules
- Sanxiang Min testcase modules
- Nùng testcase modules
- Hokkien testcase modules
- Zakhring testcase modules
- Gan testcase modules
- Baekje testcase modules
- Cina Kuno testcase modules
- Kantonis testcase modules
- Lama Bai testcase modules
- Hakka testcase modules
- Zhenan Min testcase modules
- Jin testcase modules
- Macau Pidgin Portuguese testcase modules
- Cina testcase modules
- Northern Min testcase modules
- Jepun testcase modules
- Caolan testcase modules
- E testcase modules
- Wu testcase modules
- Teochew testcase modules
- Tuyuhun testcase modules
- Xianbei testcase modules
- Puxian Min testcase modules
- Xiang testcase modules
- Hachijō testcase modules
- Min Nan testcase modules
- Bouyei testcase modules
- Mongol Pertengahan testcase modules
- Biyo testcase modules
- Longyan Min testcase modules
- Huizhou testcase modules
- Wuhuan testcase modules
- Central Min testcase modules
- Waxianghua testcase modules
- Tibet Klasik testcase modules
- Daur testcase modules
- Mandarin testcase modules
- Tày testcase modules
- Middle Vietnamese testcase modules
- Alchuka testcase modules
- Dungan testcase modules
- Literary Chinese testcase modules
- Biao-Jiao Mien testcase modules
- Sui testcase modules
- Bailang testcase modules
- Middle Chinese testcase modules
- Khitan testcase modules
- Hailufeng Min testcase modules
- Bala testcase modules
- Buyeo testcase modules
- Panyi Bai testcase modules
- Hainanese testcase modules
- Southern Bai testcase modules
- Rouran testcase modules