lean2/tests/lua/n6.lua
Leonardo de Moura 405b24861c feat(util/name): add methods append_after and append_before
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-05-18 13:49:24 -07:00

5 lines
298 B
Lua

assert(name("a", "b"):append_after(1) == name("a", "b1"))
assert(name("a", 1):append_after(2) == name("a", 1, "2"))
assert(name("a", "b"):append_after("k") == name("a", "bk"))
assert(name("a", "b"):append_before("k") == name("a", "kb"))
assert(name("a", 1):append_before("k") == name("a", "k", 1))