Test negation operation (unary -) for Point

This commit is contained in:
David Capello 2019-08-13 18:24:39 -03:00
parent 82958681d1
commit 4f33bd8e14

View File

@ -29,3 +29,7 @@ assert(pt.y == 20)
pt = Point{45, 25}
assert(pt.x == 45)
assert(pt.y == 25)
pt = -pt
assert(pt.x == -45)
assert(pt.y == -25)