Jump to content

Module:Titled coords/testcases

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by RedWolf (talk | contribs) at 20:07, 6 March 2025 (Module testcases). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
local titledCoords = require('Module:Titled_Coords/sandbox') -- the module to be tested
local ScribuntoUnit = require('Module:ScribuntoUnit')
local suite = ScribuntoUnit:new()

function suite:testBuild()
    local title = "test title"
    local coords = titledCoords.build("50/27/40/N/122/17/42/W",title,"")
    self:assertStringContains(coords, title)
end

return suite