lean2/tests/lua/n1.lua
Leonardo de Moura 76150620c3 test(lua): use assertions
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-05 13:21:01 -08:00

13 lines
360 B
Lua

n = name("foo", 1, 2)
print(n)
print(name(n, "bla"))
assert(name("foo", 1) ~= name("foo", 2))
assert(name("foo", 1) == name("foo", 1))
assert(name(name("foo", 1), 2) == name("foo", 1, 2))
assert(n ~= name("foo", 1))
assert(n ~= name("foo", 2))
assert(n < name("foo", 2))
assert(not (n < name("foo", 0)))
assert(n > name("foo", 0))
assert(name(nil) == name())