server/tests/locale.lua
Enno Rehling 812cb98dff begin binding locales (need to init_locales in the right place, still).
fix indentation in some places.
add some assertions.
2014-06-14 07:52:32 -07:00

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