Skip to content

Commit 792fffb

Browse files
authored
Fix Sun ecliptic coordinates test
1 parent 24c47ac commit 792fffb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

spec/astronoby/bodies/sun_spec.rb

+3-4
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
# Edition: MIT Press
143143
# Chapter: 6 - The Sun
144144
it "computes the coordinates for a given epoch" do
145-
time = Time.new(2000, 8, 9, 12, 0, 0, "-04:00")
145+
time = Time.new(2000, 8, 9, 12, 0, 0, "-05:00")
146146
epoch = Astronoby::Epoch.from_time(time)
147147
sun = described_class.new(epoch: epoch)
148148

@@ -151,12 +151,11 @@
151151
longitude: Astronoby::Angle.as_degrees(-95)
152152
)
153153

154-
# TODO: very far from the expected value
155154
expect(horizontal_coordinates.altitude.str(:dms)).to(
156-
eq("+53° 44′ 26.5426″")
155+
eq("+65° 41′ 50.1342″")
157156
)
158157
expect(horizontal_coordinates.azimuth.str(:dms)).to(
159-
eq("+105° 8′ 12.9486″")
158+
eq("+121° 32′ 44.7251″")
160159
)
161160
end
162161

0 commit comments

Comments
 (0)