Difference between revisions of "Module:Fallback/testcases"

From Dharmawiki
Jump to navigation Jump to search
en>Jarekt
(remove split off functions)
 
m (1 revision imported)
 
(No difference)

Latest revision as of 22:22, 9 February 2019

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