Module:User:RichardW57/pi-decl/noun/testcases

From Wiktionary, the free dictionary
Jump to navigation Jump to search

Demonstrations

[edit]

Noun

[edit]

testcases m

  1. oneself

Declension

[edit]

Artificially remove the nominative case:

Noun

[edit]

testcases n

  1. strength

Declension

[edit]

Add a consonant stem instrumental singular!

Pronoun/Adjective

[edit]

ta

  1. that

Declension

[edit]

Massively irregular!

Regression Test

[edit]

Test test_same checks that Module:User:RichardW57/pi-decl/noun and Module:pi-decl/noun generate the same output for old style inputs.

15 of 15 tests failed. (refresh)

TextExpectedActual
test_same:
Failed{{Template:User:RichardW57/pi-decl-noun|assa|a|g=m}}
Failed{{Template:User:RichardW57/pi-decl-noun|অঙ্গ|a|g=n}}
Failed{{Template:User:RichardW57/pi-decl-noun|චන්දිමා|ā|g=m}}
Failed{{Template:User:RichardW57/pi-decl-noun|अम्मा|ā|g=f}}
Failed{{Template:User:RichardW57/pi-decl-noun|ဣသိ|i|g=m}}
Failed{{Template:User:RichardW57/pi-decl-noun|ชาติ|i|g=f}}
Failed{{Template:User:RichardW57/pi-decl-noun|ᩋᨠ᩠ᨡᩥ|i|g=n}}
Failed{{Template:User:RichardW57/pi-decl-noun|មានី|ī|g=m}}
Failed{{Template:User:RichardW57/pi-decl-noun|nadī|ī|g=f}}
Failed{{Template:User:RichardW57/pi-decl-noun|𑀧𑀁𑀲𑀼|u|g=m}}
Failed{{Template:User:RichardW57/pi-decl-noun|जम्बु|u|g=f}}
Failed{{Template:User:RichardW57/pi-decl-noun|জত্তু|u|g=n}}
Failed{{Template:User:RichardW57/pi-decl-noun|sayambhū|ū|g=m}}
Failed{{Template:User:RichardW57/pi-decl-noun|vadhū|ū|g=f}}
Failed{{Template:User:RichardW57/pi-decl-noun|kattar|ar|g=m}}

local tests = require('Module:UnitTests')

function tests:test_same()
	--[[ here be the tests ]]
--preprocess_equals(text, expected, options)
	instance = function(targs)
		tests:preprocess_equals_preprocess(
			'{{Template:User:RichardW57/pi-decl-noun|'..targs..'}}',
			'{{pi-decl-noun|'..targs..'}}'
		)
    end

	instance('assa|a|g=m')
	instance('অঙ্গ|a|g=n')
	instance('චන්දිමා|ā|g=m')
	instance('अम्मा|ā|g=f')
	instance('ဣသိ|i|g=m')
	instance('ชาติ|i|g=f')
	instance('ᩋᨠ᩠ᨡᩥ|i|g=n')
	instance('មានី|ī|g=m')
	instance('nadī|ī|g=f')
	instance('𑀧𑀁𑀲𑀼|u|g=m')
	instance('जम्बु|u|g=f')
	instance('জত্তু|u|g=n')
	instance('sayambhū|ū|g=m')
	instance('vadhū|ū|g=f')
	instance('kattar|ar|g=m')
end

return tests