Module:Wikipedia ads/testcases: Difference between revisions
Appearance
Content deleted Content added
i don't get this usage |
add case for nonexistent ad |
||
Line 6: | Line 6: | ||
self:preprocess_equals_preprocess('{{wikipedia ads|175}}', '{{wikipedia ads/sandbox|175}}') |
self:preprocess_equals_preprocess('{{wikipedia ads|175}}', '{{wikipedia ads/sandbox|175}}') |
||
self:preprocess_equals_preprocess('{{wikipedia ads|ad=175|linkcolor=red|color=blue|background=yellow}}', '{{wikipedia ads/sandbox|ad=175|linkcolor=red|color=blue|background=yellow}}') |
self:preprocess_equals_preprocess('{{wikipedia ads|ad=175|linkcolor=red|color=blue|background=yellow}}', '{{wikipedia ads/sandbox|ad=175|linkcolor=red|color=blue|background=yellow}}') |
||
self:preprocess_equals_preprocess('{{wikipedia ads|ad= |
self:preprocess_equals_preprocess('{{wikipedia ads|ad=40}}', '{{wikipedia ads/sandbox|ad=40}}') |
||
self:preprocess_equals_preprocess('{{wikipedia ads|ad=175|navbox=yes}}', '{{wikipedia ads/sandbox|ad=175|navbox=yes}}') |
self:preprocess_equals_preprocess('{{wikipedia ads|ad=175|navbox=yes}}', '{{wikipedia ads/sandbox|ad=175|navbox=yes}}') |
||
end |
end |
Latest revision as of 16:12, 11 June 2023
![]() | This is the test cases page for the module Module:Wikipedia ads. Results of the test cases. |
-- Unit tests for [[Module:Wikipedia ads]]. Click talk page to run tests.
local p = require('Module:UnitTests')
function p:test_hello()
self:preprocess_equals_preprocess('{{wikipedia ads|ad=175}}', '{{wikipedia ads/sandbox|ad=175}}')
self:preprocess_equals_preprocess('{{wikipedia ads|175}}', '{{wikipedia ads/sandbox|175}}')
self:preprocess_equals_preprocess('{{wikipedia ads|ad=175|linkcolor=red|color=blue|background=yellow}}', '{{wikipedia ads/sandbox|ad=175|linkcolor=red|color=blue|background=yellow}}')
self:preprocess_equals_preprocess('{{wikipedia ads|ad=40}}', '{{wikipedia ads/sandbox|ad=40}}')
self:preprocess_equals_preprocess('{{wikipedia ads|ad=175|navbox=yes}}', '{{wikipedia ads/sandbox|ad=175|navbox=yes}}')
end
return p