dbarbalato / magellan

JavaScript Latitude and Longitude Validation and Formatting
18 stars 12 forks source link

Lats & Longs less than +1 minute are in the wrong direction #7

Closed richorama closed 8 years ago

richorama commented 8 years ago

These lines fail when added to the test suite:

assert.equal('N', magellan(0.1).latitude().coordinate.direction);
assert.equal('E', magellan(0.1).longitude().coordinate.direction);

They are evaluated at S and W respectively.

captivationsoftware commented 8 years ago

Good find -- do you want to take a stab at it or wait for me to get around to it?

richorama commented 8 years ago

I'll give it a go, and get back to you in the next day or two :¬)