server/src/scripts/run-tests.lua

22 lines
514 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
2008-05-18 16:38:12 +02:00
--test_locales()
local now = os.clock()
2008-05-18 16:38:12 +02:00
read_game("572.dat", "binary")
local elapsed = os.clock() - now
print(elapsed)
-- text: 50.574
-- bin0: 19.547
-- bin1: 18.953
io.stdin:read("*line")