We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a33c751 commit e829580Copy full SHA for e829580
src/position.rs
@@ -63,13 +63,13 @@ impl std::str::FromStr for PositionEntry {
63
}
64
65
66
- if line_len > 77 {
+ if line_len > 78 {
67
if line[78..79].eq("M") {
68
maneuver = true;
69
70
71
72
- if line_len > 78 {
+ if line_len > 79 {
73
if line[79..80].eq("P") {
74
orbit_prediction = true;
75
@@ -170,6 +170,18 @@ mod test {
170
false,
171
172
),
173
+ (
174
+ "PG23 0.000000 0.000000 0.000000 999999.999999 M",
175
+ "G23",
176
+ 0.000000,
177
178
179
+ Some(999999.999999),
180
+ false,
181
182
+ true,
183
184
+ )
185
] {
186
let sv = SV::from_str(sv).unwrap();
187
let entry = PositionEntry::from_str(content).unwrap();
0 commit comments