server/src/scripts/run-tests.lua

29 lines
650 B
Lua
Raw Normal View History

-- -*- coding: utf-8 -*-
function test_locales()
local skills = { "", "herb", "kraut", "Kräute", "Kraeut", "k", "kra", "MAGIE" }
for k,v in pairs(skills) do
str = test.loc_skill("de", v)
io.stdout:write(v, "\t", tostring(str), " ", tostring(get_string("de", "skill::" .. tostring(str))), "\n")
end
return 0
end
test_locales()
local now = os.clock()
read_game("571.new", "binary")
--read_game("566.txt", "text")
2008-04-27 13:58:14 +02:00
--write_game("566.txt", "text")
local elapsed = os.clock() - now
print(elapsed)
-- text: 50.574
-- bin0: 19.547
-- bin1: 18.953
f = get_faction(0)
--renumber(f, 666)
-- write_game("571.new", "binary")
io.stdin:read("*line")