Modul:da-adj/test
All tests passed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
mut.test("glad", "da-adj-modultest", "unprocessed") | {meta={suffix_comparison=true}, forms={attr_obest_sing_neutrum_pos="gladt", attr_komp="gladere", attr_plur_pos="glade", pred_sup="gladest", pred_komp="gladere", pred_plur_pos="glade", attr_obest_sing_utrum_pos="glad", pred_sing_neutrum_pos="gladt", attr_sup="gladest", pred_sing_utrum_pos="glad", attr_best_sing_pos="glade"}} | {forms={attr_obest_sing_neutrum_pos="gladt", pred_sing_utrum_pos="glad", attr_plur_pos="glade", pred_sup="gladest", attr_sup="gladest", pred_komp="gladere", attr_obest_sing_utrum_pos="glad", attr_komp="gladere", pred_sing_neutrum_pos="gladt", pred_plur_pos="glade", attr_best_sing_pos="glade"}, meta={suffix_comparison=true}} |
local t = require("Modul:UnitTests")
local mut = require("Modul:da-adj")
local default_limited_meta = {suffix_comparison=true}
local limited_meta_args = {"suffix_comparison"}
local function nowikiPipe(str)
return mw.ustring.gsub(str, "|", "<nowiki>|</nowiki>")
end
function t:test01_basic()
--
self:equals_deep('mut.test("glad", "da-adj-modultest", "unprocessed")', mut.test("glad", "da-adj-modultest", "unprocessed", limited_meta_args),
{
meta = default_limited_meta,
forms = {
attr_obest_sing_utrum_pos="glad",
attr_obest_sing_neutrum_pos="gladt",
attr_best_sing_pos="glade",
attr_plur_pos="glade",
attr_komp="gladere",
attr_sup="gladest",
pred_sing_utrum_pos="glad",
pred_sing_neutrum_pos="gladt",
pred_plur_pos="glade",
pred_komp="gladere",
pred_sup="gladest",
}
}
)
end
return t