2013-11-05 02:43:41 +00:00
|
|
|
n = name("foo", 1, 2)
|
2013-11-03 03:49:42 +00:00
|
|
|
print(n)
|
|
|
|
print(name(n, "bla"))
|
2013-11-05 21:21:01 +00:00
|
|
|
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())
|
|
|
|
|