Add methods to UDim2 test

This commit is contained in:
Filip Tibell 2023-03-16 21:40:39 +01:00
parent 94e84d6054
commit da8e86d743
No known key found for this signature in database

View file

@ -45,4 +45,8 @@ assert(UDim2.fromOffset(1, 1).Height == UDim.new(0, 1))
assert(UDim2.new(2, 4, 6, 8) + UDim2.new(1, 1, 1, 1) == UDim2.new(3, 5, 7, 9))
assert(UDim2.new(2, 4, 6, 8) - UDim2.new(1, 1, 1, 1) == UDim2.new(1, 3, 5, 7))
-- TODO: Methods
-- Methods
assert(UDim2.new(2, 4, 6, 8):Lerp(UDim2.new(1, 2, 3, 4), 0.0) == UDim2.new(2, 3, 6, 8))
assert(UDim2.new(2, 4, 6, 8):Lerp(UDim2.new(1, 2, 3, 4), 0.5) == UDim2.new(1.5, 3, 4.5, 6))
assert(UDim2.new(2, 4, 6, 8):Lerp(UDim2.new(1, 2, 3, 4), 1.0) == UDim2.new(1, 2, 3, 4))