Module:Pinyin/testcases
Appearance
![]() | This is the test cases page for the module Module:Pinyin. Results of the test cases. |
-- Click talk page to run tests.
local p = require('Module:UnitTests')
function p:test_pinyin()
self:preprocess_equals('{{#invoke:Pinyin|pinyin}}', '')
self:preprocess_equals('{{#invoke:Pinyin|pinyin|Wan4li2 Chang2cheng2}}', 'Wànlí Chángchéng')
self:preprocess_equals('{{#invoke:Pinyin|pinyin|She4 Diao1 yingxiongzhuan4}}', 'Shè Diāo yingxiongzhuàn')
self:preprocess_equals('{{#invoke:Pinyin|pinyin|Ai4 Dao3 Mo2 Shi4}}', 'Ài Dǎo Mó Shì')
self:preprocess_equals('{{#invoke:Pinyin|pinyin|Lv3 Bu4wei}}', 'Lǚ Bùwei')
self:preprocess_equals('{{#invoke:Pinyin|pinyin|Gong1lue4}}', 'Gōnglüè')
self:preprocess_equals('{{#invoke:Pinyin|pinyin|Xiu1ru3}}', 'Xiūrǔ')
self:preprocess_equals('{{#invoke:Pinyin|pinyin|M4 m1 n2 N3 Êi2 êi3}}', 'M4 m1 n2 N3 Êi2 êi3')
end
return p