Module:Fallback/testcases

From Dharmawiki
< Module:Fallback
Revision as of 20:16, 7 November 2018 by en>Jarekt (remove split off functions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

function p:test_translatelua()

   self:preprocess_equals('Lua error in package.lua at line 80: module 'Module:i18n/oil on canvas' not found.', 'oil on canvas')
   self:preprocess_equals('Lua error in package.lua at line 80: module 'Module:i18n/oil on canvas' not found.', "huile sur toile")
   self:preprocess_equals('Lua error in package.lua at line 80: module 'Module:i18n/oil on canvas' not found.', "huile sur toile")
   self:preprocess_equals('Lua error in package.lua at line 80: module 'Module:i18n/oil on canvas' not found.', 'olej na płótnie')
   self:preprocess_equals('Camera location', 'Camera location')

end

return p