Module:YouTubeSubscribers/testcases: Difference between revisions
Appearance
Content deleted Content added
add sandbox tests for the two cases I just added. |
add another test |
||
Line 20: | Line 20: | ||
self:preprocess_equals('{{#invoke:YouTubeSubscribers/sandbox|subCountNice|qid=Q28549924}}', '') |
self:preprocess_equals('{{#invoke:YouTubeSubscribers/sandbox|subCountNice|qid=Q28549924}}', '') |
||
self:preprocess_equals('{{#invoke:YouTubeSubscribers/sandbox|subCountNice|qid=Q1385340}}', '') |
self:preprocess_equals('{{#invoke:YouTubeSubscribers/sandbox|subCountNice|qid=Q1385340}}', '') |
||
self:preprocess_equals('{{#invoke:YouTubeSubscribers|subCountNice|qid=Q739105}}', '') |
|||
self:preprocess_equals('{{#invoke:YouTubeSubscribers/sandbox|subCountNice|qid=Q739105}}', '') |
|||
end |
end |
Revision as of 01:12, 22 May 2023
![]() | This is the test cases page for the module Module:YouTubeSubscribers. Results of the test cases. |
local p = require('Module:UnitTests')
function p:test_YT_subCount()
self:preprocess_equals('{{#invoke:YouTubeSubscribers|subCount|qid=Q111862397}}', '')
self:preprocess_equals('{{#invoke:YouTubeSubscribers|subCount|qid=Q24088544}}', '')
self:preprocess_equals('{{#invoke:YouTubeSubscribers|subCount|qid=Q5}}', '')
self:preprocess_equals('{{#invoke:YouTubeSubscribers|subCount|qid=Q999999999999}}', '')
self:preprocess_equals('{{#invoke:YouTubeSubscribers|subCount|qid=Q4115189}}', '')
end
function p:test_YT_subCountNice()
self:preprocess_equals('{{#invoke:YouTubeSubscribers|subCountNice|qid=Q111862397}}', '')
self:preprocess_equals('{{#invoke:YouTubeSubscribers|subCountNice|qid=Q24088544}}', '')
self:preprocess_equals('{{#invoke:YouTubeSubscribers|subCountNice|qid=Q5}}', '')
self:preprocess_equals('{{#invoke:YouTubeSubscribers|subCountNice|qid=Q999999999999}}', '')
self:preprocess_equals('{{#invoke:YouTubeSubscribers|subCountNice|qid=Q4115189}}', '')
self:preprocess_equals('{{#invoke:YouTubeSubscribers|subCountNice|qid=Q28549924}}', '')
self:preprocess_equals('{{#invoke:YouTubeSubscribers|subCountNice|qid=Q1385340}}', '')
self:preprocess_equals('{{#invoke:YouTubeSubscribers/sandbox|subCountNice|qid=Q28549924}}', '')
self:preprocess_equals('{{#invoke:YouTubeSubscribers/sandbox|subCountNice|qid=Q1385340}}', '')
self:preprocess_equals('{{#invoke:YouTubeSubscribers|subCountNice|qid=Q739105}}', '')
self:preprocess_equals('{{#invoke:YouTubeSubscribers/sandbox|subCountNice|qid=Q739105}}', '')
end
function p:test_YT_date()
self:preprocess_equals('{{#invoke:YouTubeSubscribers|date|qid=Q111862397}}', '')
self:preprocess_equals('{{#invoke:YouTubeSubscribers|date|qid=Q24088544}}', '')
self:preprocess_equals('{{#invoke:YouTubeSubscribers|date|qid=Q5}}', '')
self:preprocess_equals('{{#invoke:YouTubeSubscribers|date|qid=Q999999999999}}', '')
self:preprocess_equals('{{#invoke:YouTubeSubscribers|date|qid=Q4115189}}', '')
end
return p