lean2/tests/lua/old/splay1.lua
Leonardo de Moura a6116e3156 test(lua): reactivate some of the Lua unit tests
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-04-29 10:36:57 -07:00

7 lines
134 B
Lua

local s = splay_map()
assert(s:empty())
assert(#s == 0)
s:insert(10, 1)
assert(not s:empty())
assert(#s == 1)
assert(s:find(10) == 1)