Module:Interlinear/testcases/parameters

local p = require('Module:UnitTests')

function p:test_parameters_1 -- Line 1: Glossing self:preprocess_equals_preprocess("test.NOM", "test.NOM") self:preprocess_equals("test.NOM", ' test.NOM ', {nowiki=1}) end

function p:test_parameters_2 -- Line 1: Interlinear non-gloss -- Line 2: Glossing local test = "test

test.NOM"	self:preprocess_equals_preprocess(test, "test

test.NOM")	self:preprocess_equals_preprocess(test, "test

test.NOM")	self:preprocess_equals_preprocess(test, "test

test.NOM")	self:preprocess_equals(test, ' test test.NOM  test test.NOM    \n ', {nowiki=1}) end

function p:test_parameters_3 -- Line 1: Interlinear non-gloss -- Line 2: Glossing -- Line 3: Free translation local test1 = "test-ing

test.NOM-PROG

'testing'"	self:preprocess_equals_preprocess(test1, "test-ing

test.NOM-PROG

'testing'")	self:preprocess_equals(test1, ' test-ing test.NOM -PROG  test-ing test.NOM-PROG \'testing\'  \n ', {nowiki=1})

-- Line 1: Interlinear non-gloss -- Line 2: (N/A) -- Line 3: Free translation local test2 = "test-ing

'testing'"	self:preprocess_equals_preprocess(test2, "test-ing

'testing'")	self:preprocess_equals(test2, ' test-ing  test-ing \'testing\'  \n ', {nowiki=1}) end

function p:test_parameters_4 -- Line 1: Interlinear non-gloss (native orthography) -- Line 2: Interlinear non-gloss (transliteration orthography) -- Line 3: Glossing -- Line 4: Free translation local test = "тэст-иӈ

test-ing

test.NOM-PROG

'testing'"	self:preprocess_equals_preprocess(test, "тэст-иӈ

test-ing

test.NOM-PROG

'testing'")	self:preprocess_equals(test, ' <p style="margin: 0px;font-style: italic;">тэст-иӈ <p style="margin: 0px;font-style: italic;">test-ing <p style="margin: 0px;">test.<abbr class="gloss-abbr" title="nominative case" style="font-variant: small-caps; font-variant-numeric: oldstyle-nums; text-transform: lowercase; ">NOM -<abbr class="gloss-abbr" title="progressive aspect" style="font-variant: small-caps; font-variant-numeric: oldstyle-nums; text-transform: lowercase; ">PROG  <p style="display: none;">тэст-иӈ <p style="display: none;">test-ing <p style="display: none;">test.NOM-PROG <p style="clear: left;">\'testing\'  \n ', {nowiki=1}) end

return p