mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 13:00:37 +00:00
Add methods to UDim2 test
This commit is contained in:
parent
94e84d6054
commit
da8e86d743
1 changed files with 5 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue