模块:Adjacent stations/Beijing Subway/testcases
这是Module:Adjacent stations/Beijing Subway的测试样例页,测试结果请见讨论页。 |
-- [[Module:Test]]的單元測試範例,前往討論頁以執行測試。
local p = require('Module:UnitTests')
function p:test_hello()
self:preprocess_equals('{{#invoke:Test | hello}}', 'Hello, world!')
end
function p:test_acht()
self:preprocess_equals('{{#invoke:Test | {{Adjacent stations|system=Beijing Subway|line1=8|left1=回龙观东大街|right1=育新|type1=N}} }}', '—')
end
return p