Modulo:Baras ti ramit/pangsubok

Manipud iti Wikipedia, ti nawaya nga ensiklopedia
Darsen a mapan iti pagdaliasatan Darsen a mapan agbiruk
-- Panagsubok para iti [[Modulo:Baras ti ramit]]. Pinduten ti tungtunganna a panid tapno maipataray ti panagsubok.
local p = require('Modulo:UnitTests')
 
function p:test_basic_arg1()
    self:preprocess_equals_preprocess_many('{{baras ti ramit/pagipadasan|', '}}', '{{baras ti ramit|', '}}', {
        {''},
        {'foo'},
        {'foo|bar'},
        {'foo|bar|baz'},
        {'foo||baz'},
        {'foo|   |baz'},
        {'foo|  \n\n  |baz'},
        {'1=|bar|baz'},
        {'1=  |bar|baz'},
        {'foo|bar|baz|8='},
        {'foo|bar|baz|8=  '},
        {'  foo  '},
        {'3=foo'},
        {'3=  foo  '},
        {'foo|bar|class=someclass'},
        {'foo|bar|class='},
        {'foo|bar|  class  =   '},
        {'foo|bar|class=  \n  '},
        {'foo|bar|style=somestyle:somevalue;'},
        {'foo|bar|style='},
        {'foo|bar|class=  someclass  '},
        {'foo|bar|style=  somestyle: somevalue;  '},
        {'foo|bar|class=someclass|style=somestyle:somevalue;'},
        {'foo|bar|seperator=comma'},
        {'foo|bar|seperator=asdf'},
        {'foo|bar|seperator=漢字'},
        {'foo|bar|seperator='},
        {'foo|bar|seperator=     '},
        {'foo|bar|  separator  =   '},
        {'foo|bar|漢字'},
        {'foo|bar|'},
        {'foo|bar|�'},
        {'foo|bar| '},
        {'foo|bar|¬'},
        {'foo|bar|{{#expr:5/5}}'},
        {'foo|bar| '},
        {'foo|bar|{{#expr:0/5}}'},
        {'foo|bar|<br/>'},
        {'foo|bar|\n'},
        {'foo|bar|true'},
        {'foo|bar|false'},
    }, {nowiki='yes'})
end

return p