fixed the degreesToStringHDMS_() function to promote a seconds value of 60 up to the next minute; fixed test to account for the padding for minutes and seconds

This commit is contained in:
alfred.jackson
2017-01-27 17:48:02 -06:00
parent eebcccab66
commit 419c3752d2

View File

@@ -212,7 +212,7 @@ describe('ol.coordinate', function() {
it('formats with given fractional digits, if passed', function() {
var coord = [7.85, 47.983201];
var got = ol.coordinate.toStringHDMS(coord, 3);
var expected = '47° 58 59.524″ N 7° 51 0.000″ E';
var expected = '47° 58 59.524″ N 7° 51 00.000″ E';
expect(got).to.be(expected);
});
});