Module:Wd/testcases: Difference between revisions

Content deleted Content added
Removing irrelevant test case
Update
Tags: Mobile edit Mobile web edit
 
(221 intermediate revisions by 4 users not shown)
Line 1:
For performance reasons, the test cases have been divided over several subpages:
-- Unit tests for [[Module:Wd]]. Click talk page to run tests.
local p = require('Module:UnitTests')
 
* [[Module:Wd/testcases/1]] – compares the output of [[Module:Wd]] against expected values
function p:test()
* [[Module:Wd/testcases/2]] – compares the output of [[Module:Wd/sandbox]] against expected values
self:preprocess_equals('{{#invoke:Wd|property }}', '')
* [[Module:Wd/testcases/3]] – compares the output of [[Module:Wd/sandbox]] against the output of [[Module:Wd]]
self:preprocess_equals('{{#invoke:Wd|property | hello}}', '')
As of 2023, a new version of testcases is being prepared at [[Module:Wd/sandbox/testcases]].
self:preprocess_equals('{{#invoke:Wd|_property }}', '')
self:preprocess_equals('{{#invoke:Wd|_property | hello}}', '')
end
 
return p