Module:Escape/testcases
Appearance
![]() | This is the test cases page for the module Module:Escape. Results of the test cases. |
local p = require('Module:UnitTests')
function p.test_string()
return 'test, \\test, \\{,test\\\\ \\\\ \\\\\\\\'
end
function p.test_string2()
return 'test { test {\\{ test, \\test, \\{,test\\ \\ \\ {\\'
end
function p.test_string_module(frame)
return (p['test_string' .. (frame.args[1] or '')]():gsub('\\', '\\\\'))
end
return p