יחידה:קישור/בדיקות
מראה
All tests passed.
testCheckIsDismabig:
Text | Expected | Actual | |
---|---|---|---|
negative | false | false | |
positive | true | true |
-- Unit tests for [[Module:תאריך]]. Click talk page to run tests.
local p = require('Module:UnitTests')
local Link = require('יחידה:קישור')
function p:testCheckIsDismabig()
local negativeTest = Link.checkIsDismabig('אבו דאבי')
local positiveTest = Link.checkIsDismabig('אבו דאבי (פירושונים)')
self:equals('negative', tostring(negativeTest), 'false' )
self:equals('positive', tostring(positiveTest), 'true' )
end
return p