Skip to content

Commit

Permalink
change control point id test to only check they are different
Browse files Browse the repository at this point in the history
  • Loading branch information
matetamasi committed May 22, 2024
1 parent 7809869 commit d539158
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/core/test/ControlPointTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ public void controlPointIdIsIncremental() {
ControlPoint controlPoint1 = new ControlPoint(new Position(0, 0), 0, 0, null);
ControlPoint controlPoint2 = new ControlPoint(new Position(0, 1), 0, 0, null);
ControlPoint controlPoint3 = new ControlPoint(new Position(0, 2), 0, 0, null);
Assert.assertTrue(controlPoint3.getId() > controlPoint2.getId());
Assert.assertTrue(controlPoint2.getId() > controlPoint1.getId());
Assert.assertTrue(controlPoint1.getId() != controlPoint3.getId());
Assert.assertTrue(controlPoint1.getId() != controlPoint2.getId());
Assert.assertTrue(controlPoint2.getId() != controlPoint3.getId());
}
}

0 comments on commit d539158

Please sign in to comment.