Module:Autotranslate/testcases

-- Unit tests for Module:Autotranslate. Click talk page to run tests. local p = require('Module:UnitTests')

function p:test_autotranslate self:preprocess_equals('', 'Template:Autotranslate/test/en (lang=en) was called') self:preprocess_equals('', 'Template:Autotranslate/test/en (lang=fr) was called') self:preprocess_equals('', 'Template:Autotranslate/test/pl (lang=pl) was called') self:preprocess_equals('', 'Template:Autotranslate/test/pl (lang=szl) was called') self:preprocess_equals('', 'Template:Autotranslate/test/pl (lang=szl) was called') self:preprocess_equals('', 'Template:Autotranslate/test/es (lang=an) was called') self:preprocess_equals('', 'Template:Autotranslate/test/es (1=arg #1, lang=an, text=hello) was called') end

return p