2013-11-08 22:53:54 +00:00
|
|
|
l = level()
|
|
|
|
assert(is_level(l))
|
2013-11-13 19:46:09 +00:00
|
|
|
assert(l:is_bottom())
|
|
|
|
assert(l:kind() == level_kind.UVar)
|
2013-11-08 22:53:54 +00:00
|
|
|
l = level(l, 1)
|
|
|
|
assert(is_level(l))
|
2013-11-13 19:46:09 +00:00
|
|
|
assert(not l:is_bottom())
|
|
|
|
assert(l:is_lift())
|
|
|
|
assert(l:kind() == level_kind.Lift)
|
|
|
|
assert(l:lift_of() == level())
|
|
|
|
assert(l:lift_offset() == 1)
|
2013-11-08 22:53:54 +00:00
|
|
|
l = level("U")
|
2013-11-13 19:46:09 +00:00
|
|
|
assert(l:is_uvar())
|
|
|
|
assert(l:uvar_name() == name("U"))
|
|
|
|
assert(not l:is_lift())
|
2013-11-08 22:53:54 +00:00
|
|
|
l = level(level("U"), level("M"), level("m"))
|
2013-11-13 19:46:09 +00:00
|
|
|
assert(l:is_max())
|
|
|
|
assert(l:max_size() == 3)
|
|
|
|
assert(l:max_level(0) == level("U"))
|
|
|
|
assert(l:max_level(1) == level("M"))
|
2013-11-08 22:53:54 +00:00
|
|
|
print(l)
|
2013-11-13 19:46:09 +00:00
|
|
|
assert(l:kind() == level_kind.Max)
|