about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-08-30 19:04:45 +0200
committerEmile <hanemile@protonmail.com>2019-08-30 19:04:45 +0200
commit635e890c06057ca740d16ffd412ef3ad315acf3b (patch)
tree95d54f2964b63d437b9157e6b24fef1ff274a590
parent66f68d8a5b7c6168aa447b1cf7fd5e6476699150 (diff)
added another test
-rw-r--r--convert_test.go50
1 files changed, 50 insertions, 0 deletions
diff --git a/convert_test.go b/convert_test.go
index 96ee3c3..54fe945 100644
--- a/convert_test.go
+++ b/convert_test.go
@@ -216,6 +216,56 @@ func TestNewTLE(t *testing.T) {
 			},
 			wantErr: false,
 		},
+
+		//NOAA 1 [-]
+		//1 04793U 70106A   19240.84692470 -.00000044  00000-0  47034-5 0  9995
+		//2 04793 101.6989 308.4654 0032091 148.0366 326.6117 12.53991010229282
+		{
+			name: "CALSPHERE 1             ",
+			args: args{
+				RawTLE: `NOAA 1 [-]                                         
+1 04793U 70106A   19240.84692470 -.00000044  00000-0  47034-5 0  9995
+2 04793 101.6989 308.4654 0032091 148.0366 326.6117 12.53991010229282`,
+			},
+			want: TLE{
+				TitleLine: TitleLine{
+					Satname: "NOAA 1 [-]              ",
+				},
+				LineOne: LineOne{
+					Linenumber:      1,
+					SatelliteNumber: 4793,
+					Classification:  "U",
+					InternationalDesignator: InternationalDesignator{
+						Launchyear:   70,
+						Launchnumber: 106,
+						Launchpiece:  "A",
+					},
+					Epoch: Epoch{
+						Year:        19,
+						Dayfraction: 240.8469247,
+					},
+					Firstderiv:       -4.4e-07,
+					Secondderiv:      0,
+					BSTAR:            4.7034e-06,
+					Numberzero:       0,
+					ElementSetNumber: 999,
+					Checksum:         5,
+				},
+				LineTwo: LineTwo{
+					Linenumber:                       2,
+					SatelliteNumber:                  4793,
+					Inclination:                      1.6989,
+					RightAscensionOfTheAscendingNode: 308.4654,
+					Eccentricity:                     32091,
+					ArgumentOfPerigee:                148.0366,
+					MeanAnomaly:                      326.6117,
+					MeanMotion:                       12.5399101,
+					RevolutionNumberAtEpoch:          22928,
+					Checksum:                         2,
+				},
+			},
+			wantErr: false,
+		},
 	}
 	for _, tt := range tests {
 		t.Run(tt.name, func(t *testing.T) {