From d5391581606a6c50628f4504c9df459b92757018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1si=20M=C3=A1t=C3=A9?= Date: Wed, 22 May 2024 11:12:25 +0200 Subject: [PATCH] change control point id test to only check they are different --- test/core/test/ControlPointTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/core/test/ControlPointTest.java b/test/core/test/ControlPointTest.java index d3bb74f..3b0fd69 100644 --- a/test/core/test/ControlPointTest.java +++ b/test/core/test/ControlPointTest.java @@ -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()); } }