Skip to content

Commit

Permalink
fix: unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Vaiko committed Oct 25, 2024
1 parent ca51e25 commit 7695450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/courseGenerator/test/PolygonTest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ function testPolygon()

p = Polygon({ Vector(-20, 0), Vector(-15, -3), Vector(-10, -4), Vector(-5, -4),
Vector(0, 0), Vector(5, 0), Vector(10, 0), Vector(15, 0) })
lu.assertAlmostEquals(p:getSmallestRadiusWithinDistance(4, 15, 20), 3.02)
lu.assertAlmostEquals(p:getSmallestRadiusWithinDistance(4, 15, 20), 1.61)

p = Polygon({ Vector(0, 0), Vector(0, 5), Vector(5, 5), Vector(5, 0) })
lu.assertEquals(p:moveForward(1, 6), 3)
Expand Down

0 comments on commit 7695450

Please sign in to comment.