Skip to content

Commit

Permalink
Update physics.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
ellraiser committed Nov 23, 2023
1 parent d6c7796 commit cc4b618
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testing/tests/physics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ love.test.physics.Body = function(test)
test:assertEquals('cool', body1:getUserData().love, 'check set user data')

-- check x/y direct
test:assertEquals(10, body1:getX(), 'check get x')
test:assertEquals(4, body1:getY(), 'check get y')
test:assertEquals(10, math.floor(body1:getX()), 'check get x')
test:assertEquals(4, math.floor(body1:getY()), 'check get y')
body1:setX(0)
body1:setY(0)
test:assertEquals(0, body1:getX(), 'check get x')
Expand Down

0 comments on commit cc4b618

Please sign in to comment.