Skip to content

Commit e5b4e2b

Browse files
authored
Update openlocationcode_test.js
1 parent 9161476 commit e5b4e2b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/closure/openlocationcode_test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,10 @@ testSuite({
256256
assertEquals('Test ' + i, recovered, td[0]);
257257
}
258258
},
259+
testRecoveryNearPoles: function() {
260+
assertEquals("2CXXXXXX+XX", OpenLocationCode.recoverNearest("XXXXXX+XX", -81.0, 0.0));
261+
assertEquals("CFX22222+22", OpenLocationCode.recoverNearest("2222+22", 89.6, 0.0));
262+
},
259263
testValidity: function() {
260264
var tests = [
261265
// code,isValid,isShort,isFull

0 commit comments

Comments
 (0)