Module:Location map/testcases

Hægt er að búa til leiðbeiningar fyrir þessa skriftu á Module:Location map/testcases/doc

-- Unit tests for [[Module:Location map]]. Click talk page to run tests.
local p = require('Module:UnitTests')
 
function p:test_locmap()
    self:preprocess_equals_preprocess_many('{{location map/sandkassi|', '}}', 
            '{{location map|', '}}', {
            { 'Belgía | label=Walraversijde | lat_deg=51 |lat_min=12| lat_sec=01 |lat_dir=N| lon_deg=2 |lon_min=51 |lon_sec=17 |lon_dir=E | width=150| float=left', 
            	'Belgía | label=Walraversijde | lat_deg=51 |lat_min=12| lat_sec=01 |lat_dir=N| lon_deg=2 |lon_min=51 |lon_sec=17 |lon_dir=E | width=150| float=left'},
            { 'Belgía | label=Walraversijde | lat_deg=51 |lat_min=12| lat_sec=01 |lat_dir=N| lon_deg=2 |lon_min=51 |lon_sec=17 |lon_dir=A | width=150| float=left', 
            	'Belgía | label=Walraversijde | lat_deg=51 |lat_min=12| lat_sec=01 |lat_dir=N| lon_deg=2 |lon_min=51 |lon_sec=17 |lon_dir=A | width=150| float=left'},
            { 'Belgía | label=Walraversijde | coordinates={{hnit|51.200359|N|2.854681|E}} | width=150| float=left', 
            	'Belgía | label=Walraversijde | coordinates={{hnit|51.200359|N|2.854681|E}} | width=150| float=left'},
            { 'Belgía | label=Walraversijde | coordinates={{hnit|51.200359|N|2.854681|A}} | width=150| float=left', 
            	'Belgía | label=Walraversijde | coordinates={{hnit|51.200359|N|2.854681|A}} | width=150| float=left'},
}, {stripmarker = 1})
end

return p