lean2/tests/lua/splay1.lua
Leonardo de Moura 1315378ebb test(*): add missing tests
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-18 09:13:34 -08: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)