From 635e890c06057ca740d16ffd412ef3ad315acf3b Mon Sep 17 00:00:00 2001 From: Emile Date: Fri, 30 Aug 2019 19:04:45 +0200 Subject: added another test --- convert_test.go | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) 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) { -- cgit 1.4.1