lean2/tests/lua/old/splay1.lua

8 lines
134 B
Lua
Raw Normal View History

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)