Modul:Break/testiranje

Dokumentaciju za ovaj modul možete napraviti na stranici Modul:Break/testiranje/dok

-- Unit tests for [[Module:Break]]. Click talk page to run tests.
local p = require('Module:UnitTests')

function p:test_basic()
    self:preprocess_equals_preprocess_many('{{break/igralište', '}}', '{{break', '}}', {
        {''},
        {'|1'},
        {'|2'},
        {'|3'},
        {'|4'},
        {'|5'},
        {'|6'},
        {'|7'},
        {'|19'},
        {'|20'},
        {'|21'},
        {'|40'},
        {'|3.5'},
        {'|0'},
        {'|0.5'},
        {'|-0.5'},
        {'|-1'},
        {'|e'},
        {'|math.huge'},
        {'|math.pi'},
        {'|foo'},
        {'|-10'},
        {'|inf'},
        {'|nan'},
        {'|1/0'},
        {'|0/0'}
    }, { nowiki = 'yes' })
end

return p