Jump to content

Module:Escape/testcases: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Created page with '-- Example Unit tests for Module:Bananas. Click talk page to run tests. local p = require('Module:UnitTests') function p:test_string() return self:equal...'
 
No edit summary
Line 2: Line 2:
local p = require('Module:UnitTests')
local p = require('Module:UnitTests')


p.test_string = 'test, \\test, \\{,test\\\\ \\\\ \\\\\\\\'
function p:test_string()
return self:equals('test, \\test, \\{,test\\\\ \\\\ \\\\\\\\')
end


return p
return p

Revision as of 18:51, 14 January 2015

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

p.test_string = 'test, \\test, \\{,test\\\\ \\\\ \\\\\\\\'

return p