mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 21:41:50 +00:00
update test
This commit is contained in:
parent
59978f4c6e
commit
5e025b548f
1 changed files with 5 additions and 2 deletions
|
|
@ -8,8 +8,11 @@ assert(player.get_name(pid) == "Xerxes")
|
||||||
test.sleep_until(function() return world.count_chunks() >= 9 end, 1000)
|
test.sleep_until(function() return world.count_chunks() >= 9 end, 1000)
|
||||||
print(world.count_chunks())
|
print(world.count_chunks())
|
||||||
|
|
||||||
timeit(1000000, block.get, 0, 0, 0)
|
for i=1,3 do
|
||||||
timeit(1000000, block.get_slow, 0, 0, 0)
|
print("---")
|
||||||
|
timeit(1000000, block.get, 0, 0, 0)
|
||||||
|
timeit(1000000, block.get_slow, 0, 0, 0)
|
||||||
|
end
|
||||||
|
|
||||||
block.destruct(0, 0, 0, pid)
|
block.destruct(0, 0, 0, pid)
|
||||||
assert(block.get(0, 0, 0) == 0)
|
assert(block.get(0, 0, 0) == 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue