Jump to content

Module:YouTubeSubscribers/testcases: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
test_YT_subCountNice
Line 5: Line 5:
self:preprocess_equals('{{#invoke:YouTubeSubscribers|subCount|qid=Q24088544}}', '')
self:preprocess_equals('{{#invoke:YouTubeSubscribers|subCount|qid=Q24088544}}', '')
self:preprocess_equals('{{#invoke:YouTubeSubscribers|subCount|qid=Q5}}', '')
self:preprocess_equals('{{#invoke:YouTubeSubscribers|subCount|qid=Q5}}', '')
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}}', '')
end
end


Line 12: Line 17:
self:preprocess_equals('{{#invoke:YouTubeSubscribers|date|qid=Q24088544}}', '')
self:preprocess_equals('{{#invoke:YouTubeSubscribers|date|qid=Q24088544}}', '')
self:preprocess_equals('{{#invoke:YouTubeSubscribers|date|qid=Q5}}', '')
self:preprocess_equals('{{#invoke:YouTubeSubscribers|date|qid=Q5}}', '')
end
end



Revision as of 03:13, 1 March 2023

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}}', '')
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}}', '')
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}}', '')
end

return p