From 6143e73645ac5bc7099e1e90a9b4f52c85bc7844 Mon Sep 17 00:00:00 2001 From: oblonski Date: Wed, 5 Oct 2016 09:03:07 +0200 Subject: [PATCH] add name to location --- .../com/graphhopper/jsprit/core/problem/LocationTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jsprit-core/src/test/java/com/graphhopper/jsprit/core/problem/LocationTest.java b/jsprit-core/src/test/java/com/graphhopper/jsprit/core/problem/LocationTest.java index f237eadb..edcd76ff 100644 --- a/jsprit-core/src/test/java/com/graphhopper/jsprit/core/problem/LocationTest.java +++ b/jsprit-core/src/test/java/com/graphhopper/jsprit/core/problem/LocationTest.java @@ -75,8 +75,8 @@ public class LocationTest { @Test public void whenCoordinateSet_build() { Location l = Location.Builder.newInstance().setCoordinate(Coordinate.newInstance(10, 20)).build(); - Assert.assertEquals(10., l.getCoordinate().getX()); - Assert.assertEquals(20., l.getCoordinate().getY()); + Assert.assertEquals(10., l.getCoordinate().getX(),0.001); + Assert.assertEquals(20., l.getCoordinate().getY(),0.001); Assert.assertTrue(true); } @@ -84,8 +84,8 @@ public class LocationTest { public void whenCoordinateSetWithFactory_returnCorrectLocation() { // Location l = Location.Builder.newInstance().setCoordinate(Coordinate.newInstance(10,20)).build(); Location l = Location.newInstance(10, 20); - Assert.assertEquals(10., l.getCoordinate().getX()); - Assert.assertEquals(20., l.getCoordinate().getY()); + Assert.assertEquals(10., l.getCoordinate().getX(),0.001); + Assert.assertEquals(20., l.getCoordinate().getY(),0.001); Assert.assertTrue(true); }