Module:Term/testcases/keys
From Space Station 14 Wiki
Documentation for this module may be created at Module:Term/testcases/keys/doc
local p = require('Module:Term') -- the module to be tested
local ScribuntoUnit = require('Module:ScribuntoUnit')
local suite = ScribuntoUnit:new()
local frame = mw.getCurrentFrame()
if not p.terms_json_path then
error("failed to load terms json table: table path is not exported")
end
local terms_json = mw.loadJsonData(p.terms_json_path)
function suite:test_keys_casing()
for key, _ in pairs(terms_json) do
self:assertEquals(string.lower(key), key)
end
end
return suite