Skip to content

Commit

Permalink
Adapt test
Browse files Browse the repository at this point in the history
  • Loading branch information
otbutz committed Apr 25, 2024
1 parent febd3c3 commit 3446bd6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ public void testSimpleTags() {

// if value is beyond the maximum then do not use infinity instead fallback to more restrictive maximum
edgeIntAccess = new ArrayEdgeIntAccess(1);
readerWay.setTag("maxweight", "50");
readerWay.setTag("maxweight", "54");
parser.handleWayTags(edgeId, edgeIntAccess, readerWay, relFlags);
assertEquals(25.4, mwEnc.getDecimal(false, edgeId, edgeIntAccess), .01);
assertEquals(51, mwEnc.getDecimal(false, edgeId, edgeIntAccess), .01);
}

@Test
Expand All @@ -62,4 +62,4 @@ public void testConditionalTags() {
parser.handleWayTags(edgeId, edgeIntAccess, readerWay, relFlags);
assertEquals(6, mwEnc.getDecimal(false, edgeId, edgeIntAccess), .01);
}
}
}

0 comments on commit 3446bd6

Please sign in to comment.