Changes
Jump to navigation
Jump to search
Module:Fallback/testcases (view source)
Revision as of 20:16, 7 November 2018
, 20:16, 7 November 2018remove split off functions
-- Unit tests for [[Module:Fallback]]. Click talk page to run tests.
local p = require('Module:UnitTests')
function p:test_translatelua()
self:preprocess_equals('{{#invoke: Fallback | translatelua |i18n/oil on canvas| lang = en }}', '[[:en:oil on canvas|oil on canvas]]')
self:preprocess_equals('{{#invoke: Fallback | translatelua |i18n/oil on canvas| lang = fr }}', "[[:fr:Peinture à l'huile|huile]] sur [[:fr:Toile (peinture)|toile]]")
self:preprocess_equals('{{#invoke: Fallback | translatelua |i18n/oil on canvas| lang = frc }}', "[[:fr:Peinture à l'huile|huile]] sur [[:fr:Toile (peinture)|toile]]")
self:preprocess_equals('{{#invoke: Fallback | translatelua |i18n/oil on canvas| lang = pl }}', 'olej na płótnie')
self:preprocess_equals('{{#invoke: Fallback | translatelua |i18n/coordinates|CameraLocation| lang = en }}', 'Camera location')
end
return p
local p = require('Module:UnitTests')
function p:test_translatelua()
self:preprocess_equals('{{#invoke: Fallback | translatelua |i18n/oil on canvas| lang = en }}', '[[:en:oil on canvas|oil on canvas]]')
self:preprocess_equals('{{#invoke: Fallback | translatelua |i18n/oil on canvas| lang = fr }}', "[[:fr:Peinture à l'huile|huile]] sur [[:fr:Toile (peinture)|toile]]")
self:preprocess_equals('{{#invoke: Fallback | translatelua |i18n/oil on canvas| lang = frc }}', "[[:fr:Peinture à l'huile|huile]] sur [[:fr:Toile (peinture)|toile]]")
self:preprocess_equals('{{#invoke: Fallback | translatelua |i18n/oil on canvas| lang = pl }}', 'olej na płótnie')
self:preprocess_equals('{{#invoke: Fallback | translatelua |i18n/coordinates|CameraLocation| lang = en }}', 'Camera location')
end
return p