Module:anui-pron/testcases: Difference between revisions

From Linguifex
Jump to navigation Jump to search
(Created page with "local tests = require('Module:UnitTests') function tests:test_example() --here be the tests end return tests")
 
No edit summary
Line 2: Line 2:


function tests:test_example()
function tests:test_example()
--[[ here be the tests ]]
local list = {
{"aa", "aː"},
{"aã", "ãː"},
{"àa", "a̰ː"},
{"àã", "ã̰ː"},
{"àʼa", "a̰ʔa"},
{"àʼã", "ã̰ʔã"},
{"um", "m̍ː˥˦"},
{"ùm", "m̰̍ː˧"},
{"mʼm", "m̰̍ʔm˧"},
}
end
end


return tests
return tests

Revision as of 14:50, 1 July 2021


All tests passed. (refresh)
TextExpectedActual
test_example:

local tests = require('Module:UnitTests')

function tests:test_example()
	local list = {
		{"aa", "aː"},
		{"aã", "ãː"},
		{"àa", "a̰ː"},
		{"àã", "ã̰ː"},
		{"àʼa", "a̰ʔa"},
		{"àʼã", "ã̰ʔã"},
		{"um", "m̍ː˥˦"},
		{"ùm", "m̰̍ː˧"},
		{"mʼm", "m̰̍ʔm˧"},
	}
end

return tests