Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
Signed-off-by: Cédric Foellmi <cedric@onekiloparsec.dev>
  • Loading branch information
onekiloparsec committed Nov 2, 2023
1 parent 3289420 commit 6eb7ed5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/moon.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { MOON_SYNODIC_PERIOD, MoonPhase, MoonPhaseName, MoonPhaseQuarter } from

describe('moon', () => {
test('get moon mean longitude', () => {
expect(Earth.Moon.getMeanLongitude(245123456).toNumber()).toBe(182.1252505089)
expect(Earth.Moon.getMeanLongitude(245123456).toNumber()).toBeCloseTo(182.1252505089, 9)
})

test('get moon mean elongation', () => {
expect(Earth.Moon.getMeanElongation(245123456).toNumber()).toBe(175.566305716)
expect(Earth.Moon.getMeanElongation(245123456).toNumber()).toBeCloseTo(175.566305716, 9)
})

// See example 47.a, AA p 343.
Expand Down

0 comments on commit 6eb7ed5

Please sign in to comment.