Jump to content

Module:Pinyin/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Underbar dk (talk | contribs) at 09:15, 28 February 2014 (Created page with '-- Example Unit tests for Module:Bananas. Click talk page to run tests. local p = require('Module:UnitTests') function p:test_pinyin() self:preprocess_e...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
-- Example Unit tests for [[Module:Bananas]]. Click talk page to run tests.
local p = require('Module:UnitTests')

function p:test_pinyin()
    self:preprocess_equals('{{#invoke:Sandbox/Underbar dk/Pinyin/testcases|pinyin}}', '')
    self:preprocess_equals('{{#invoke:Sandbox/Underbar dk/Pinyin/testcases|pinyin|Wan4li2 Chang2cheng2}}', '')
	self:preprocess_equals('{{#invoke:Sandbox/Underbar dk/Pinyin/testcases|pinyin|She4 Diao yingxiongzhuan4}}', '')
    self:preprocess_equals('{{#invoke:Sandbox/Underbar dk/Pinyin/testcases|pinyin|Ai4 Dao3 Mo2 Shi4}}', '')
    self:preprocess_equals('{{#invoke:Sandbox/Underbar dk/Pinyin/testcases|pinyin|Lv3 Bu4wei}}', '')
    self:preprocess_equals('{{#invoke:Sandbox/Underbar dk/Pinyin/testcases|pinyin|xian1 chenglou2}}', '')

end

return p