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

function p:test_top()
    self:preprocess_equals_many('{{#invoke:Stacktrace/sandbox|top|', '}}', {
        {'foo>bar', 'bar'},
        {'s= foo ', '3'},
        {'', '0'},
        {'s=', '0'},
        {'   ', '3'},
    })
end

return p