forked from github/server
17 lines
401 B
Lua
17 lines
401 B
Lua
require "lunit"
|
|
|
|
module("tests.eressea.locale", package.seeall, lunit.testcase )
|
|
|
|
function setup()
|
|
eressea.free_game()
|
|
end
|
|
|
|
function test_get_set()
|
|
local loc = "en"
|
|
assert_not_nil(eressea.locale)
|
|
eressea.locale.create(loc)
|
|
assert_equal(nil, eressea.locale.get(loc, "move"))
|
|
eressea.locale.set(loc, "move", "MOVE")
|
|
assert_equal("MOVE", eressea.locale.get(loc, "move"))
|
|
end
|
|
|