76150620c3
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
13 lines
360 B
Lua
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())
|
|
|