mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
Add tests for Rectangle.isEmpty
This commit is contained in:
parent
f5a484d28a
commit
ec5a4c263f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user