Module:Fallback/testcases

From Dharmawiki
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