پرش به محتوا

پودمان:NotInLang/testcases

از ویکی‌پدیا، دانشنامهٔ آزاد
-- Unit tests for [[پودمان:Sandbox/Alfa80/testmodule]]. Click talk page to run tests.
local p = require('Module:UnitTests')

function p:test_getURL()
	local sutMethod='{{#invoke:NotInLang | getURL|';
    self:preprocess_equals(
    	sutMethod..'35.744444|51.375|60}}'
    	, 'tools.wmflabs.org/not-in-the-other-language/?lang1=en&lang2=fa&wdq=around%5B625%2C35.744444%2C51.375%2C60%5D&doit=Do+it')
    self:preprocess_equals(
    	sutMethod..'35.744444|51.375|70}}'
    	, 'tools.wmflabs.org/not-in-the-other-language/?lang1=en&lang2=fa&wdq=around%5B625%2C35.744444%2C51.375%2C70%5D&doit=Do+it')
    self:preprocess_equals(
    	sutMethod..'45.744444|51.375|60}}'
    	, 'tools.wmflabs.org/not-in-the-other-language/?lang1=en&lang2=fa&wdq=around%5B625%2C45.744444%2C51.375%2C60%5D&doit=Do+it')
    self:preprocess_equals(
    	sutMethod..'35.744444|41.375|60}}'
    	, 'tools.wmflabs.org/not-in-the-other-language/?lang1=en&lang2=fa&wdq=around%5B625%2C35.744444%2C41.375%2C60%5D&doit=Do+it')    
end

return p