equationoftime 4.1.5 → 4.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,261 +1,264 @@
1
1
  # angles_spec.rb
2
-
2
+ gem 'minitest'
3
+ require 'minitest/autorun'
3
4
  lib = File.expand_path('../../../lib', __FILE__)
4
5
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
6
  require 'eot'
6
7
 
7
- Eot_angles = Eot.new
8
+ angles = Eot.new
8
9
 
9
- describe 'Tests ajd of 2456885.0' do
10
+ describe 'Tests ajd of 2456885.0 ' do
10
11
 
11
12
  before(:each) do
12
- Eot_angles.ajd = 2_456_885.0
13
- ajd = Eot_angles.ajd
13
+ angles.ajd = 2_456_885.0
14
+ ajd = angles.ajd
15
+ angles.ma_ta_set
14
16
  # check date for this ajd when needed.
15
- Eot_angles.date = Eot_angles.ajd_to_datetime(ajd)
17
+ angles.date = angles.ajd_to_datetime(ajd)
16
18
  end
17
19
 
18
- it 'should be 2456885.0 for Eot_angles.ajd'do
19
- assert_equal(2_456_885.0, Eot_angles.ajd)
20
+ it 'expected 2456885.0 for angles.ajd'do
21
+ assert_equal(2_456_885.0, angles.ajd)
20
22
  end
21
23
 
22
- it 'should be "2014-08-15T12:00:00+00:00" for Eot_angles.date'.to_s do
23
- assert_equal('2014-08-15T12:00:00+00:00', Eot_angles.date.to_s)
24
+ it 'expected "2014-08-15T12:00:00+00:00" for angles.date'.to_s do
25
+ assert_equal('2014-08-15T12:00:00+00:00', angles.date.to_s)
24
26
  end
25
27
 
26
- it 'should be 3.8508003966038915 for Eot_angles.ma'do
27
- assert_equal(3.8508003966038915, Eot_angles.ma)
28
+ it 'expected 3.8508003966038915 for angles.ma'do
29
+ assert_equal(3.8508003966038915, angles.ma)
28
30
  end
29
31
 
30
- it 'should be 2.4887103398436143 from Eot_angles.al_sun()? ' do
31
- assert_equal(2.4887103398436143, Eot_angles.al_sun)
32
+ it 'expected 2.4887103398436143 from angles.al_sun()? ' do
33
+ assert_equal(2.4887103398436143, angles.al_sun)
32
34
  end
33
35
 
34
- it 'should be -0.021413249720702462 from Eot_angles.centre()? ' do
35
- assert_equal(-0.021413249720702462, Eot_angles.center)
36
+ it 'expected -0.021413249720702462 from angles.centre()? ' do
37
+ assert_equal(-0.021413249720702462, angles.center)
36
38
  end
37
39
 
38
- it 'should be -0.7943361570447028 from Eot_angles.cosine_al_sun()? ' do
39
- assert_equal(-0.7943361570447028, Eot_angles.cosine_al_sun)
40
+ it 'expected -0.7943361570447028 from angles.cosine_al_sun()? ' do
41
+ assert_equal(-0.7943361570447028, angles.cosine_al_sun)
40
42
  end
41
43
 
42
- it 'should be -0.7943772759574919 from Eot_angles.cosine_tl_sun()? ' do
43
- assert_equal(-0.7943772759574919, Eot_angles.cosine_tl_sun)
44
+ it 'expected -0.7943772759574919 from angles.cosine_tl_sun()? ' do
45
+ assert_equal(-0.7943772759574919, angles.cosine_tl_sun)
44
46
  end
45
47
 
46
- it 'should be 0.9175115346811911 from Eot_angles.cosine_to_earth()? ' do
47
- assert_equal(0.9175115346811911, Eot_angles.cosine_to_earth)
48
+ it 'expected 0.9175115346811911 from angles.cosine_to_earth()? ' do
49
+ assert_equal(0.9175115346811911, angles.cosine_to_earth)
48
50
  end
49
51
 
50
- it 'should be 0.24401410218543554 from Eot_angles.dec_sun()? ' do
51
- assert_equal(0.24401410218543554, Eot_angles.dec_sun)
52
+ it 'expected 0.24401410218543554 from angles.dec_sun()? ' do
53
+ assert_equal(0.24401410218543554, angles.dec_sun)
52
54
  end
53
55
 
54
- it 'should be -4.069792718159396e-05 from Eot_angles.delta_epsilon()? ' do
55
- assert_equal(-4.069792718159396e-05, Eot_angles.delta_epsilon)
56
+ it 'expected -4.069792718159396e-05 from angles.delta_epsilon()? ' do
57
+ assert_equal(-4.069792718159396e-05, angles.delta_epsilon)
56
58
  end
57
59
 
58
- it 'should be -0.04103082558803539 from Eot_angles.delta_oblique()? ' do
59
- assert_equal(-0.04103082558803539, Eot_angles.delta_oblique)
60
+ it 'expected -0.04103082558803539 from angles.delta_oblique()? ' do
61
+ assert_equal(-0.04103082558803539, angles.delta_oblique)
60
62
  end
61
63
 
62
- it 'should be 0.021413249720702462 from Eot_angles.delta_orbit()? ' do
63
- assert_equal(0.021413249720702462, Eot_angles.delta_orbit)
64
+ it 'expected 0.021413249720702462 from angles.delta_orbit()? ' do
65
+ assert_equal(0.021413249720702462, angles.delta_orbit)
64
66
  end
65
67
 
66
- it 'should be 3.75123821843003e-05 from Eot_angles.delta_psi()? ' do
67
- assert_equal(3.75123821843003e-05, Eot_angles.delta_psi)
68
+ it 'expected 3.75123821843003e-05 from angles.delta_psi()? ' do
69
+ assert_equal(3.75123821843003e-05, angles.delta_psi)
68
70
  end
69
71
 
70
- it 'should be 0.016702468499021204 from \
71
- Eot_angles.eccentricity_earth()? ' do
72
- assert_equal(0.016702468499021204, Eot_angles.eccentricity_earth)
72
+ it 'expected 0.016702468499021204 from \
73
+ angles.eccentricity_earth()? ' do
74
+ assert_equal(0.016702468499021204, angles.eccentricity_earth)
73
75
  end
74
76
 
75
- it 'should be 3.441804334746474e-05 from Eot_angles.eq_of_equinox()? ' do
76
- assert_equal(3.441804334746474e-05, Eot_angles.eq_of_equinox)
77
+ it 'expected 3.4412912434333975e-05 from angles.eq_of_equinox()? ' do
78
+ assert_equal(3.4412912434333975e-05, angles.eq_of_equinox)
77
79
  end
78
80
 
79
- it 'should be -0.01961757586733293 from Eot_angles.eot()? ' do
80
- assert_equal(-0.01961757586733293, Eot_angles.eot)
81
+ it 'expected -0.01961757586733293 from angles.eot()? ' do
82
+ assert_equal(-0.01961757586733293, angles.eot)
81
83
  end
82
84
 
83
- it 'should be 2.5101912804141424 from Eot_angles.gml_sun()? ' do
84
- assert_equal(2.5101912804141424, Eot_angles.gml_sun)
85
+ it 'expected 2.5101912804141424 from angles.gml_sun()? ' do
86
+ assert_equal(2.5101912804141424, angles.gml_sun)
85
87
  end
86
88
 
87
- it 'should be 1.9143229567859146 from Eot_angles.ha_sun()? ' do
88
- assert_equal(1.9143229567859146, Eot_angles.ha_sun)
89
+ it 'expected 1.5857841877939605 from angles.ha_sun(1)? ' do
90
+ assert_equal(1.5857841877939605, angles.ha_sun(1))
89
91
  end
90
92
 
91
- it 'should be 3.8508003966038915 from Eot_angles.ma_sun()? ' do
92
- assert_equal(3.8508003966038915, Eot_angles.ma_sun)
93
+ it 'expected 3.8508003966038915 from angles.ma_sun()? ' do
94
+ assert_equal(3.8508003966038915, angles.ma_sun)
93
95
  end
94
96
 
95
- it 'should be 2.510089864980358 from Eot_angles.ml_aries()? ' do
96
- assert_equal(2.510089864980358, Eot_angles.ml_aries)
97
+ it 'expected 2.510089864980358 from angles.ml_aries()? ' do
98
+ assert_equal(2.510089864980358, angles.ml_aries)
97
99
  end
98
100
 
99
- it 'should be 0.40905940254265843 from Eot_angles.mo_earth()? ' do
100
- assert_equal(0.40905940254265843, Eot_angles.mo_earth)
101
+ it 'expected 0.40905940254265843 from angles.mo_earth()? ' do
102
+ assert_equal(0.40905940254265843, angles.mo_earth)
101
103
  end
102
104
 
103
- it 'should be -2.7528817371494685 from Eot_angles.omega()? ' do
104
- assert_equal(-2.7528817371494685, Eot_angles.omega)
105
+ it 'expected -2.7528817371494685 from angles.omega()? ' do
106
+ assert_equal(-2.7528817371494685, angles.omega)
105
107
  end
106
108
 
107
- it 'should be 2.5297411654316497 from Eot_angles.ra_sun()? ' do
108
- assert_equal(2.5297411654316497, Eot_angles.ra_sun)
109
+ it 'expected 2.5297411654316497 from angles.ra_sun()? ' do
110
+ assert_equal(2.5297411654316497, angles.ra_sun)
109
111
  end
110
112
 
111
- it 'should be 0.6074784519729512 from Eot_angles.sine_al_sun()? ' do
112
- assert_equal(0.6074784519729512, Eot_angles.sine_al_sun)
113
+ it 'expected 0.6074784519729512 from angles.sine_al_sun()? ' do
114
+ assert_equal(0.6074784519729512, angles.sine_al_sun)
113
115
  end
114
116
 
115
- it 'should be 0.6074246812917259 from Eot_angles.sine_tl_sun()? ' do
116
- assert_equal(0.6074246812917259, Eot_angles.sine_tl_sun)
117
+ it 'expected 0.6074246812917259 from angles.sine_tl_sun()? ' do
118
+ assert_equal(0.6074246812917259, angles.sine_tl_sun)
117
119
  end
118
120
 
119
- it 'should be 3.8293871468831893 from Eot_angles.ta_sun()? ' do
120
- assert_equal(3.8293871468831893, Eot_angles.ta_sun)
121
+ it 'expected 3.8293871468831893 from angles.ta_sun()? ' do
122
+ assert_equal(3.8293871468831893, angles.ta_sun)
121
123
  end
122
124
 
123
- it 'should be 2.5101242776531474 from Eot_angles.tl_aries()? ' do
124
- assert_equal(2.5101242776531474, Eot_angles.tl_aries)
125
+ it 'expected 2.5101242776531474 from angles.tl_aries()? ' do
126
+ assert_equal(2.5101242776531474, angles.tl_aries)
125
127
  end
126
128
 
127
- it 'should be 2.48877803069344 from Eot_angles.tl_sun()? ' do
128
- assert_equal(2.48877803069344, Eot_angles.tl_sun)
129
+ it 'expected 2.48877803069344 from angles.tl_sun()? ' do
130
+ assert_equal(2.48877803069344, angles.tl_sun)
129
131
  end
130
132
 
131
- it 'should be 0.40901870461547685 from Eot_angles.to_earth()? ' do
132
- assert_equal(0.40901870461547685, Eot_angles.to_earth)
133
+ it 'expected 0.40901870461547685 from angles.to_earth()? ' do
134
+ assert_equal(0.40901870461547685, angles.to_earth)
133
135
  end
134
136
  end
135
137
 
136
138
  describe 'Tests ajd of 2455055.5 ' do
137
139
 
138
140
  before(:each) do
139
- Eot_angles.ajd = 2_455_055.0
140
- ajd = Eot_angles.ajd
141
+ angles.ajd = 2_455_055.0
142
+ ajd = angles.ajd
143
+ angles.ma_ta_set
141
144
  # check date for this ajd when needed.
142
- Eot_angles.date = Eot_angles.ajd_to_datetime(ajd)
145
+ angles.date = angles.ajd_to_datetime(ajd)
143
146
  end
144
147
 
145
- it 'should be 2455055.0, from Eot_angles.' do
146
- assert_equal(2_455_055.0, Eot_angles.ajd)
148
+ it 'expected 2455055.0, from angles.' do
149
+ assert_equal(2_455_055.0, angles.ajd)
147
150
  end
148
151
 
149
- it 'should be "2009-08-11T12:00:00+00:00", from Eot_angles.date.to_s' do
150
- assert_equal('2009-08-11T12:00:00+00:00', Eot_angles.date.to_s)
152
+ it 'expected "2009-08-11T12:00:00+00:00", from angles.date.to_s' do
153
+ assert_equal('2009-08-11T12:00:00+00:00', angles.date.to_s)
151
154
  end
152
155
 
153
- it 'should be 3.7871218188949207, from Eot_angles.' do
154
- assert_equal(3.7871218188949207, Eot_angles.ma)
156
+ it 'expected 3.7871218188949207, from angles.' do
157
+ assert_equal(3.7871218188949207, angles.ma)
155
158
  end
156
159
 
157
- it 'should be 2.4252140645725033 from Eot_angles.al_sun()? ' do
158
- assert_equal(2.4252140645725033, Eot_angles.al_sun)
160
+ it 'expected 2.4252140645725033 from angles.al_sun()? ' do
161
+ assert_equal(2.4252140645725033, angles.al_sun)
159
162
  end
160
163
 
161
- it 'should be -0.019768413456709915 from Eot_angles.center()? ' do
162
- assert_equal(-0.019768413456709915, Eot_angles.center)
164
+ it 'expected -0.019768413456709915 from angles.center()? ' do
165
+ assert_equal(-0.019768413456709915, angles.center)
163
166
  end
164
167
 
165
- it 'should be -0.7541886969975007 from Eot_angles.cosine_al_sun()? ' do
166
- assert_equal(-0.7541886969975007, Eot_angles.cosine_al_sun)
168
+ it 'expected -0.7541886969975007 from angles.cosine_al_sun()? ' do
169
+ assert_equal(-0.7541886969975007, angles.cosine_al_sun)
167
170
  end
168
171
 
169
- it 'should be -0.7542060769936684 from Eot_angles.cosine_tl_sun()? ' do
170
- assert_equal(-0.7542060769936684, Eot_angles.cosine_tl_sun)
172
+ it 'expected -0.7542060769936684 from angles.cosine_tl_sun()? ' do
173
+ assert_equal(-0.7542060769936684, angles.cosine_tl_sun)
171
174
  end
172
175
 
173
- it 'should be 0.9174818088112336 from Eot_angles.cosine_to_earth()? ' do
174
- assert_equal(0.9174818088112336, Eot_angles.cosine_to_earth)
176
+ it 'expected 0.9174818088112336 from angles.cosine_to_earth()? ' do
177
+ assert_equal(0.9174818088112336, angles.cosine_to_earth)
175
178
  end
176
179
 
177
- it 'should be 0.26426912722944046 from Eot_angles.dec_sun()? ' do
178
- assert_equal(0.26426912722944046, Eot_angles.dec_sun)
180
+ it 'expected 0.2642691272294404 from angles.dec_sun()? ' do
181
+ assert_equal(0.2642691272294404, angles.dec_sun)
179
182
  end
180
183
 
181
- it 'should be 2.2661506700250296e-05 from Eot_angles.delta_epsilon()? ' do
182
- assert_equal(2.2661506700250296e-05, Eot_angles.delta_epsilon)
184
+ it 'expected 2.2661506700250296e-05 from angles.delta_epsilon()? ' do
185
+ assert_equal(2.2661506700250296e-05, angles.delta_epsilon)
183
186
  end
184
187
 
185
- it 'should be -0.04234904897476355 from Eot_angles.delta_oblique()? ' do
186
- assert_equal(-0.04234904897476355, Eot_angles.delta_oblique)
188
+ it 'expected -0.04234904897476355 from angles.delta_oblique()? ' do
189
+ assert_equal(-0.04234904897476355, angles.delta_oblique)
187
190
  end
188
191
 
189
- it 'should be 0.019768413456709915 from Eot_angles.delta_orbit()? ' do
190
- assert_equal(0.019768413456709915, Eot_angles.delta_orbit)
192
+ it 'expected 0.019768413456709915 from angles.delta_orbit()? ' do
193
+ assert_equal(0.019768413456709915, angles.delta_orbit)
191
194
  end
192
195
 
193
- it 'should be 7.639341522992976e-05 from Eot_angles.delta_psi()? ' do
194
- assert_equal(7.639341522992976e-05, Eot_angles.delta_psi)
196
+ it 'expected 7.639341522992976e-05 from angles.delta_psi()? ' do
197
+ assert_equal(7.639341522992976e-05, angles.delta_psi)
195
198
  end
196
199
 
197
- it 'should be 0.016704576164208475 from \
198
- Eot_angles.eccentricity_earth()? ' do
199
- assert_equal(0.016704576164208475, Eot_angles.eccentricity_earth)
200
+ it 'expected 0.016704576164208475 from \
201
+ angles.eccentricity_earth()? ' do
202
+ assert_equal(0.016704576164208475, angles.eccentricity_earth)
200
203
  end
201
204
 
202
- it 'should be 7.00895687864236e-05 from Eot_angles.eq_of_equinox()? ' do
203
- assert_equal(7.00895687864236e-05, Eot_angles.eq_of_equinox)
205
+ it 'expected 7.007879585074761e-05 from angles.eq_of_equinox()? ' do
206
+ assert_equal(7.007879585074761e-05, angles.eq_of_equinox)
204
207
  end
205
208
 
206
- it 'should be -0.022580635518053633 from Eot_angles.eot()? ' do
207
- assert_equal(-0.022580635518053633, Eot_angles.eot)
209
+ it 'expected -0.022580635518053633 from angles.eot()? ' do
210
+ assert_equal(-0.022580635518053633, angles.eot)
208
211
  end
209
212
 
210
- it 'should be 2.445008945789877 from Eot_angles.gml_sun()? ' do
211
- assert_equal(2.445008945789877, Eot_angles.gml_sun)
213
+ it 'expected 2.445008945789877 from angles.gml_sun()? ' do
214
+ assert_equal(2.445008945789877, angles.gml_sun)
212
215
  end
213
216
 
214
- it 'should be 1.9434600427973594 from Eot_angles.ha_sun()? ' do
215
- assert_equal(1.9434600427973594, Eot_angles.ha_sun)
217
+ it 'expected 1.585863261753274 from angles.ha_sun(1)? ' do
218
+ assert_equal(1.585863261753274, angles.ha_sun(1))
216
219
  end
217
220
 
218
- it 'should be 3.7871218188949207 from Eot_angles.ma_sun()? ' do
219
- assert_equal(3.7871218188949207, Eot_angles.ma_sun)
221
+ it 'expected 3.7871218188949207 from angles.ma_sun()? ' do
222
+ assert_equal(3.7871218188949207, angles.ma_sun)
220
223
  end
221
224
 
222
- it 'should be 2.444907382260759 from Eot_angles.ml_aries()? ' do
223
- assert_equal(2.444907382260759, Eot_angles.ml_aries)
225
+ it 'expected 2.444907382260759 from angles.ml_aries()? ' do
226
+ assert_equal(2.444907382260759, angles.ml_aries)
224
227
  end
225
228
 
226
- it 'should be 0.4090707793981491 from Eot_angles.mo_earth()? ' do
227
- assert_equal(0.4090707793981491, Eot_angles.mo_earth)
229
+ it 'expected 0.4090707793981491 from angles.mo_earth()? ' do
230
+ assert_equal(0.4090707793981491, angles.mo_earth)
228
231
  end
229
232
 
230
- it 'should be -1.0615640635268548 from Eot_angles.omega()? ' do
231
- assert_equal(-1.0615640635268548, Eot_angles.omega)
233
+ it 'expected -1.0615640635268548 from angles.omega()? ' do
234
+ assert_equal(-1.0615640635268548, angles.omega)
232
235
  end
233
236
 
234
- it 'should be 2.467563113547267 from Eot_angles.ra_sun()? ' do
235
- assert_equal(2.467563113547267, Eot_angles.ra_sun)
237
+ it 'expected 2.467563113547267 from angles.ra_sun()? ' do
238
+ assert_equal(2.467563113547267, angles.ra_sun)
236
239
  end
237
240
 
238
- it 'should be 0.6566577566139093 from Eot_angles.sine_al_sun()? ' do
239
- assert_equal(0.6566577566139093, Eot_angles.sine_al_sun)
241
+ it 'expected 0.6566577566139093 from angles.sine_al_sun()? ' do
242
+ assert_equal(0.6566577566139093, angles.sine_al_sun)
240
243
  end
241
244
 
242
- it 'should be 0.6566377946979757 from Eot_angles.sine_tl_sun()? ' do
243
- assert_equal(0.6566377946979757, Eot_angles.sine_tl_sun)
245
+ it 'expected 0.6566377946979757 from angles.sine_tl_sun()? ' do
246
+ assert_equal(0.6566377946979757, angles.sine_tl_sun)
244
247
  end
245
248
 
246
- it 'should be 3.767353405438211 from Eot_angles.ta_sun()? ' do
247
- assert_equal(3.767353405438211, Eot_angles.ta_sun)
249
+ it 'expected 3.767353405438211 from angles.ta_sun()? ' do
250
+ assert_equal(3.767353405438211, angles.ta_sun)
248
251
  end
249
252
 
250
- it 'should be 2.4449774607872907 from Eot_angles.tl_aries()? ' do
251
- assert_equal(2.4449774607872907, Eot_angles.tl_aries)
253
+ it 'expected 2.4449774607872907 from angles.tl_aries()? ' do
254
+ assert_equal(2.4449774607872907, angles.tl_aries)
252
255
  end
253
256
 
254
- it 'should be 2.4252405323331674 from Eot_angles.tl_sun()? ' do
255
- assert_equal(2.4252405323331674, Eot_angles.tl_sun)
257
+ it 'expected 2.4252405323331674 from angles.tl_sun()? ' do
258
+ assert_equal(2.4252405323331674, angles.tl_sun)
256
259
  end
257
260
 
258
- it 'should be 0.4090934409048494 from Eot_angles.to_earth()? ' do
259
- assert_equal(0.4090934409048494, Eot_angles.to_earth)
261
+ it 'expected 0.4090934409048494 from angles.to_earth()? ' do
262
+ assert_equal(0.4090934409048494, angles.to_earth)
260
263
  end
261
264
  end
@@ -1,5 +1,6 @@
1
1
  # constants_spec.rb
2
-
2
+ gem 'minitest'
3
+ require 'minitest/autorun'
3
4
  lib = File.expand_path('../../../lib', __FILE__)
4
5
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
6
  require 'eot'
@@ -1,111 +1,114 @@
1
1
  # displays_spec.rb
2
2
 
3
+ gem 'minitest'
4
+ require 'minitest/autorun'
3
5
  lib = File.expand_path('../../../lib', __FILE__)
4
6
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
7
  require 'eot'
6
8
 
7
- Eot_displays = Eot.new
9
+ displays = Eot.new
8
10
 
9
11
  describe 'Eot displays using ajd of 2456885.0' do
10
12
 
11
13
  before(:each) do
12
- Eot_displays.ajd = 2_456_885.0
13
- ajd = Eot_displays.ajd
14
+ displays.ajd = 2_456_885.0
15
+ ajd = displays.ajd
16
+ displays.ma_ta_set
14
17
  # check date for this ajd when needed.
15
- Eot_displays.date = Eot_displays.ajd_to_datetime(ajd)
18
+ displays.date = displays.ajd_to_datetime(ajd)
16
19
  end
17
20
 
18
- it 'expected 2456885.0 for Eot_displays.ajd'do
19
- assert_equal 2_456_885.0, Eot_displays.ajd
21
+ it 'expected 2456885.0 for displays.ajd'do
22
+ assert_equal 2_456_885.0, displays.ajd
20
23
  end
21
24
 
22
- it 'expected "2014-08-15T12:00:00+00:00", from Eot_displays.date.to_s' do
23
- assert_equal '2014-08-15T12:00:00+00:00', Eot_displays.date.to_s
25
+ it 'expected "2014-08-15T12:00:00+00:00", from displays.date.to_s' do
26
+ assert_equal '2014-08-15T12:00:00+00:00', displays.date.to_s
24
27
  end
25
28
 
26
- it 'expected 3.8508003966038915, from Eot_displays.' do
27
- assert_equal 3.8508003966038915, Eot_displays.ma
29
+ it 'expected 3.8508003966038915, from displays.' do
30
+ assert_equal 3.8508003966038915, displays.ma
28
31
  end
29
32
 
30
- it 'expected "+000:00:00.000" from Eot_displays.degrees_to_s() ' do
31
- assert_equal '+000:00:00.000', Eot_displays.degrees_to_s
32
- assert_equal '+000:00:00.000', Eot_displays.degrees_to_s(nil)
33
- assert_equal '+000:00:00.000', Eot_displays.degrees_to_s(0)
33
+ it 'expected "+000:00:00.000" from displays.degrees_to_s() ' do
34
+ assert_equal '+000:00:00.000', displays.degrees_to_s
35
+ assert_equal '+000:00:00.000', displays.degrees_to_s(nil)
36
+ assert_equal '+000:00:00.000', displays.degrees_to_s(0)
34
37
  end
35
38
 
36
- it 'expected "+142:35:33.356" from Eot_displays.string_al_sun() ' do
37
- assert_equal '+142:35:33.356', Eot_displays.string_al_sun
39
+ it 'expected "+142:35:33.356" from displays.string_al_sun() ' do
40
+ assert_equal '+142:35:33.356', displays.string_al_sun
38
41
  end
39
42
 
40
- it 'expected "12:00:00" from Eot_displays.string_day_fraction_to_time() ' do
41
- assert_equal '12:00:00', Eot_displays.string_day_fraction_to_time
42
- assert_equal '12:00:00', Eot_displays.string_day_fraction_to_time(nil)
43
- assert_equal '12:00:00', Eot_displays.string_day_fraction_to_time(0)
43
+ it 'expected "12:00:00" from displays.string_day_fraction_to_time() ' do
44
+ assert_equal '12:00:00', displays.string_day_fraction_to_time
45
+ assert_equal '12:00:00', displays.string_day_fraction_to_time(nil)
46
+ assert_equal '12:00:00', displays.string_day_fraction_to_time(0)
44
47
  end
45
48
 
46
- it 'expected "+013:58:51.521" from Eot_displays.string_dec_sun() ' do
47
- assert_equal '+013:58:51.521', Eot_displays.string_dec_sun
49
+ it 'expected "+013:58:51.522" from displays.string_dec_sun() ' do
50
+ assert_equal '+013:58:51.522', displays.string_dec_sun
48
51
  end
49
52
 
50
- it 'expected "-04m, 29.2s" from Eot_displays.string_eot() ' do
51
- assert_equal '-04m, 29.2s', Eot_displays.string_eot
53
+ it 'expected "-04m, 29.2s" from displays.string_eot() ' do
54
+ assert_equal '-04m, 29.2s', displays.string_eot
52
55
  end
53
56
 
54
- it 'expected "2000-01-01" from Eot_displays.string_jd_to_date() ' do
55
- assert_equal '2000-01-01', Eot_displays.string_jd_to_date
56
- assert_equal '2000-01-01', Eot_displays.string_jd_to_date(nil)
57
- assert_equal '2000-01-01', Eot_displays.string_jd_to_date(0)
57
+ it 'expected "2000-01-01" from displays.string_jd_to_date() ' do
58
+ assert_equal '2000-01-01', displays.string_jd_to_date
59
+ assert_equal '2000-01-01', displays.string_jd_to_date(nil)
60
+ assert_equal '2000-01-01', displays.string_jd_to_date(0)
58
61
  end
59
62
 
60
63
  it 'expected "2014-08-15" from \
61
- Eot_displays.jd_to_date_string(Eot_displays.ajd)? ' do
62
- assert_equal '2014-08-15', Eot_displays.jd_to_date_string(Eot_displays.ajd)
64
+ displays.jd_to_date_string(displays.ajd)? ' do
65
+ assert_equal '2014-08-15', displays.jd_to_date_string(displays.ajd)
63
66
  end
64
67
 
65
- it 'expected "+220:38:04.597" from Eot_displays.string_ma_sun() ' do
66
- assert_equal '+220:38:04.597', Eot_displays.string_ma_sun
68
+ it 'expected "+220:38:04.598" from displays.string_ma_sun() ' do
69
+ assert_equal '+220:38:04.598', displays.string_ma_sun
67
70
  end
68
71
 
69
- it 'expected "+144:56:36.571" from Eot_displays.string_ra_sun() ' do
70
- assert_equal '+144:56:36.571', Eot_displays.string_ra_sun
72
+ it 'expected "+144:56:36.571" from displays.string_ra_sun() ' do
73
+ assert_equal '+144:56:36.571', displays.string_ra_sun
71
74
  end
72
75
 
73
- it 'expected "+219:24:27.797" from Eot_displays.string_ta_sun() ' do
74
- assert_equal '+219:24:27.797', Eot_displays.string_ta_sun
76
+ it 'expected "+219:24:27.798" from displays.string_ta_sun() ' do
77
+ assert_equal '+219:24:27.798', displays.string_ta_sun
75
78
  end
76
79
 
77
- it 'expected "12:00:00.000" from Eot_displays.string_time() ' do
78
- assert_equal '12:00:00.000', Eot_displays.string_time
79
- assert_equal '12:00:00.000', Eot_displays.string_time(nil)
80
- assert_equal '12:00:00.000', Eot_displays.string_time(0)
80
+ it 'expected "12:00:00.000" from displays.string_time() ' do
81
+ assert_equal '12:00:00.000', displays.string_time
82
+ assert_equal '12:00:00.000', displays.string_time(nil)
83
+ assert_equal '12:00:00.000', displays.string_time(0)
81
84
  end
82
85
 
83
86
  it 'expected "12:00:00.000" from \
84
- Eot_displays.display_time_string(Eot_adisplays.date)? ' do
87
+ displays.display_time_string(Eot_adisplays.date)? ' do
85
88
  assert_equal '12:00:00.000', \
86
- Eot_displays.display_time_string(Eot_displays.date)
89
+ displays.display_time_string(displays.date)
87
90
  end
88
91
 
89
92
  it 'expected "+142:35:47.318" from \
90
- Eot_displays.string_tl_sun() ' do
91
- assert_equal '+142:35:47.318', Eot_displays.string_tl_sun
93
+ displays.string_tl_sun() ' do
94
+ assert_equal '+142:35:47.318', displays.string_tl_sun
92
95
  end
93
96
 
94
- it 'expected "+023:26:06.163" from Eot_displays.string_to_earth() ' do
95
- assert_equal '+023:26:06.163', Eot_displays.string_to_earth
97
+ it 'expected "+023:26:06.164" from displays.string_to_earth() ' do
98
+ assert_equal '+023:26:06.164', displays.string_to_earth
96
99
  end
97
100
 
98
101
  end
99
102
 
100
103
  describe 'Eot displays explicit values' do
101
104
 
102
- it 'expected "16:40:40.800" from Eot_displays.string_time(16.6780) ' do
103
- assert_equal '16:40:40.800', Eot_displays.string_time(16.6780)
105
+ it 'expected "16:40:40.800" from displays.string_time(16.6780) ' do
106
+ assert_equal '16:40:40.800', displays.string_time(16.6780)
104
107
  end
105
108
 
106
- it 'expected "17:59:16.800" from Eot_displays.string_time(17988) ' do
107
- Eot_displays.date = Date.today.to_s
108
- assert_equal '17:59:16.800', Eot_displays.string_time(17.988)
109
+ it 'expected "17:59:16.800" from displays.string_time(17988) ' do
110
+ displays.date = Date.today.to_s
111
+ assert_equal '17:59:16.800', displays.string_time(17.988)
109
112
  end
110
113
 
111
114
  end