Jump to content

Module:aii-conj/testcases

From Wiktionary, the free dictionary

22 of 22 tests failed. (refresh)

TextExpectedActualDiffers at
test_conj:
Failedܡܲܥܒܸܕ݂{{aii-conj-verb/C-strong|ܥ|ܒ|ܕ݂}}{{aii-conj/C-strong|ܥ|ܒ|ܕ݂}}11
Failedܡܲܚܹܐ{{aii-conj-verb/C-weak-2d-3i|ܚ}}{{aii-conj/C-weak-2d-3i|ܚ}}11
Failedܡܲܥܠܹܐ{{aii-conj-verb/C-weak-3i|ܥ|ܠ}}{{aii-conj/C-weak-3i|ܥ|ܠ}}11
Failedܡܲܠܸܦ{{aii-conj-verb/C-weak-d|ܠ|ܦ}}{{aii-conj/C-weak-d|ܠ|ܦ}}11
Failedܡܲܥܝܸܕ݂{{aii-conj-verb/C-weak-m|ܥ|ܕ݂}}{{aii-conj/C-weak-2i|ܥ|ܕ݂}}11
Failedܡܥܲܕܸܢ{{aii-conj-verb/D-strong|ܥ|ܕ|ܢ}}{{aii-conj/D-strong|ܥ|ܕ|ܢ}}11
Failedܡܐܲܣܹܐ{{aii-conj-verb/D-weak-3i|ܐ|ܣ}}{{aii-conj/D-weak-3i|ܐ|ܣ}}11
Failedܥܵܕ݂ܹܪ{{aii-conj-verb/G-strong|ܥ|ܕ݂|ܪ}}{{aii-conj/G-strong|ܥ|ܕ݂|ܪ}}11
Failedܐܵܟ̰ܹܡ{{aii-conj-verb/G-weak-1i|ܟ̰|ܡ}}{{aii-conj/G-weak-1i|ܟ̰|ܡ}}11
Failedܥܵܐܹܠ{{aii-conj-verb/G-weak-2i|ܥ|ܠ}}{{aii-conj/G-weak-2i|ܥ|ܠ}}11
Failedܥܵܢܹܐ{{aii-conj-verb/G-weak-3i|ܥ|ܢ}}{{aii-conj/G-weak-3i|ܥ|ܢ}}11
Failedܡܸܬ݂ܟܬ݂ܹܒ݂{{aii-conj-verb/Gt-strong|ܟ|ܬ݂|ܒ݂}}{{aii-conj/Gt-strong|ܟ|ܬ݂|ܒ݂}}11
Failedܡܐܲܪܓܘܸܢ{{aii-conj-verb/Penta-strong|ܐ|ܪ|ܓ|ܘ|ܢ}}{{aii-conj/Penta-strong|ܐ|ܪ|ܓ|ܘ|ܢ}}11
Failedܡܥܲܠܬܸܢ{{aii-conj-verb/Q-strong|ܥ|ܠ|ܬ|ܢ}}{{aii-conj/Q-strong|ܥ|ܠ|ܬ|ܢ}}11
Failedܡܦܲܪܓܹܐ{{aii-conj-verb/Q-weak|ܦ|ܪ|ܓ}}{{aii-conj/Q-weak-4i|ܦ|ܪ|ܓ}}11
Failedܡܸܫܬܲܒ݂ܗܸܪ{{aii-conj-verb/Qi-strong|ܒ݂|ܗ|ܪ}}{{aii-conj/Qi-strong|ܒ݂|ܗ|ܪ}}11
Failedܛܵܐܹܒ݂{{aii-conj-verb/G-strong|ܛ|ܐ|ܒ݂}}{{aii-conj/G-strong|ܛ|ܐ|ܒ݂}}11
Failedܝܵܐܹܒ݂{{aii-conj-verb/G-strong|ܝ|ܐ|ܒ݂}}{{aii-conj/G-strong|ܝ|ܐ|ܒ݂}}11
Failedܗܵܘܹܐ{{aii-conj-haweh}}{{aii-conj/ܗܘܐ}}11
Failedܐܵܬ݂ܹܐ{{aii-conj-verb/atheh}}{{aii-conj/ܐܬܐ}}11
Failedܐܵܙܹܠ{{aii-conj-verb/azel}}{{aii-conj/ܐܙܠ}}11
Failedܝܵܗ݇ܒ݂ܹܠ{{aii-conj-verb/yavel}}{{aii-conj/ܝܗܒܠ}}11

local tests = require("Module:UnitTests")
local _conj = require "Module:aii-conj"._conj

function str_literal_testcase(result)
    local str_result = "{{" .. result.title
    for _, arg in ipairs(result.args) do
        str_result = str_result .. "|" .. arg
    end
    str_result = str_result .. "}}"
    
    return str_result
end


local function tag(text)
	return '<span>' .. text .. '</span>'
end

function tests:test_conj()
	self:iterate({
        {'ܡܲܥܒܸܕ݂', '{{aii-conj-verb/C-strong|ܥ|ܒ|ܕ݂}}'},
        {'ܡܲܚܹܐ', '{{aii-conj-verb/C-weak-2d-3i|ܚ}}'},
        {'ܡܲܥܠܹܐ', '{{aii-conj-verb/C-weak-3i|ܥ|ܠ}}'},
        {'ܡܲܠܸܦ', '{{aii-conj-verb/C-weak-d|ܠ|ܦ}}'},
        {'ܡܲܥܝܸܕ݂', '{{aii-conj-verb/C-weak-m|ܥ|ܕ݂}}'},
        {'ܡܥܲܕܸܢ', '{{aii-conj-verb/D-strong|ܥ|ܕ|ܢ}}'},
        {'ܡܐܲܣܹܐ', '{{aii-conj-verb/D-weak-3i|ܐ|ܣ}}'},
        {'ܥܵܕ݂ܹܪ', '{{aii-conj-verb/G-strong|ܥ|ܕ݂|ܪ}}'},
        {'ܐܵܟ̰ܹܡ', '{{aii-conj-verb/G-weak-1i|ܟ̰|ܡ}}'},
        {'ܥܵܐܹܠ', '{{aii-conj-verb/G-weak-2i|ܥ|ܠ}}'},
        {'ܥܵܢܹܐ', '{{aii-conj-verb/G-weak-3i|ܥ|ܢ}}'},
        {'ܡܸܬ݂ܟܬ݂ܹܒ݂', '{{aii-conj-verb/Gt-strong|ܟ|ܬ݂|ܒ݂}}'},
        {'ܡܐܲܪܓܘܸܢ', '{{aii-conj-verb/Penta-strong|ܐ|ܪ|ܓ|ܘ|ܢ}}'},
        {'ܡܥܲܠܬܸܢ', '{{aii-conj-verb/Q-strong|ܥ|ܠ|ܬ|ܢ}}'},
        {'ܡܦܲܪܓܹܐ', '{{aii-conj-verb/Q-weak|ܦ|ܪ|ܓ}}'},
        {'ܡܸܫܬܲܒ݂ܗܸܪ', '{{aii-conj-verb/Qi-strong|ܒ݂|ܗ|ܪ}}'},
        -- Special cases
        {'ܛܵܐܹܒ݂', '{{aii-conj-verb/G-strong|ܛ|ܐ|ܒ݂}}'},
        {'ܝܵܐܹܒ݂', '{{aii-conj-verb/G-strong|ܝ|ܐ|ܒ݂}}'},
        -- Irregular conjugations
        {'ܗܵܘܹܐ', '{{aii-conj-haweh}}'},
        {'ܐܵܬ݂ܹܐ', '{{aii-conj-verb/atheh}}'},
        {'ܐܵܙܹܠ', '{{aii-conj-verb/azel}}'},
        {'ܝܵܗ݇ܒ݂ܹܠ', '{{aii-conj-verb/yavel}}'}
	},
	function(self, example, expected)
		self:equals(tag(example), str_literal_testcase(_conj(example)), expected)
	end)
end

return tests