Skip to content

Commit

Permalink
Fix Sun ecliptic coordinates test
Browse files Browse the repository at this point in the history
  • Loading branch information
rhannequin committed Feb 19, 2024
1 parent 5449e79 commit ef1937d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions spec/astronoby/bodies/sun_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
# Edition: MIT Press
# Chapter: 6 - The Sun
it "computes the coordinates for a given epoch" do
time = Time.new(2000, 8, 9, 12, 0, 0, "-04:00")
time = Time.new(2000, 8, 9, 12, 0, 0, "-05:00")
epoch = Astronoby::Epoch.from_time(time)
sun = described_class.new(epoch: epoch)

Expand All @@ -151,12 +151,11 @@
longitude: Astronoby::Angle.as_degrees(-95)
)

# TODO: very far from the expected value
expect(horizontal_coordinates.altitude.str(:dms)).to(
eq("+53° 44′ 26.5426″")
eq("+65° 41′ 50.1342″")
)
expect(horizontal_coordinates.azimuth.str(:dms)).to(
eq("+105° 8′ 12.9486″")
eq("+121° 32′ 44.7251″")
)
end

Expand Down

0 comments on commit ef1937d

Please sign in to comment.