Skip to content

Commit 589c2a8

Browse files
Stricter unit tests
1 parent bca9b53 commit 589c2a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/java/com/mapcode/EncodeDecodeTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ public void run() {
141141
}
142142
}
143143
if (!found) {
144+
if (!MapcodeCodec.multipleBordersNearby(decodeLocation, territory)) { // but should be found!
144145
LOG.error("Re-encode{} of {} failed for {} {} from ({},{})", nrDigits, decodeLocation, territory, codePrecision, latDeg, lonDeg);
145146
errors.getAndIncrement();
146147
for (final Mapcode candidate : recodedMapcodes) {

0 commit comments

Comments
 (0)