Add tests for Rectangle.isEmpty

This commit is contained in:
David Capello 2018-08-31 15:07:51 -03:00
parent f5a484d28a
commit ec5a4c263f

View File

@ -8,12 +8,14 @@ assert(rc.x == 0)
assert(rc.y == 0)
assert(rc.width == 0)
assert(rc.height == 0)
assert(rc.isEmpty)
rc = Rectangle(1, 2, 3, 4)
assert(rc.x == 1)
assert(rc.y == 2)
assert(rc.width == 3)
assert(rc.height == 4)
assert(not rc.isEmpty)
local rc2 = Rectangle(rc)
assert(rc2.x == 1)