@@ -1493,7 +1493,7 @@ void testBearingsForStartAndEndPoints() {
1493
1493
body .put ("coordinates" , HelperFunctions .constructCoords ("8.688694,49.399374|8.686495,49.40349" ));
1494
1494
body .put ("preference" , getParameter ("preference" ));
1495
1495
body .put ("geometry" , true );
1496
- body .put ("bearings" , constructBearings ("25,30|90 ,20" ));
1496
+ body .put ("bearings" , constructBearings ("25,30|270 ,20" ));
1497
1497
1498
1498
given ()
1499
1499
.config (JSON_CONFIG_DOUBLE_NUMBERS )
@@ -1505,7 +1505,7 @@ void testBearingsForStartAndEndPoints() {
1505
1505
.then ()
1506
1506
.assertThat ()
1507
1507
.body ("any { it.key == 'routes' }" , is (true ))
1508
- .body ("routes[0].summary.distance" , is (closeTo (804.9 , 1 )))
1508
+ .body ("routes[0].summary.distance" , is (closeTo (647.2f , 1 )))
1509
1509
.statusCode (200 );
1510
1510
}
1511
1511
@@ -1518,6 +1518,7 @@ void testBearingsExceptLastPoint() {
1518
1518
body .put ("bearings" , constructBearings ("25,30" ));
1519
1519
1520
1520
given ()
1521
+ .config (JSON_CONFIG_DOUBLE_NUMBERS )
1521
1522
.headers (CommonHeaders .jsonContent )
1522
1523
.pathParam ("profile" , "cycling-road" )
1523
1524
.body (body .toString ())
@@ -1526,7 +1527,7 @@ void testBearingsExceptLastPoint() {
1526
1527
.then ()
1527
1528
.assertThat ()
1528
1529
.body ("any { it.key == 'routes' }" , is (true ))
1529
- .body ("routes[0].summary.distance" , is (647.2f ))
1530
+ .body ("routes[0].summary.distance" , is (closeTo ( 804.7f , 1 ) ))
1530
1531
.statusCode (200 );
1531
1532
}
1532
1533
0 commit comments