From a4770f7cbe18db9a297147057dac54aa2b349cf0 Mon Sep 17 00:00:00 2001 From: Emile Date: Mon, 19 Aug 2019 14:52:06 +0200 Subject: removed the convert files, rewriting --- convert.go | 7 ------- convert_test.go | 40 ---------------------------------------- 2 files changed, 47 deletions(-) delete mode 100644 convert.go delete mode 100644 convert_test.go diff --git a/convert.go b/convert.go deleted file mode 100644 index 739a6eb..0000000 --- a/convert.go +++ /dev/null @@ -1,7 +0,0 @@ -package TLE - -// StrinToTLE reads the inputTLE line by line, and inserts it into a TLE -// struct -func StringToTLE(inputTLE string) (TLE, error) { - return TLE{}, nil -} diff --git a/convert_test.go b/convert_test.go deleted file mode 100644 index f827319..0000000 --- a/convert_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package TLE - -import ( - "reflect" - "testing" -) - -func TestStringToTLE(t *testing.T) { - type args struct { - inputTLE string - } - tests := []struct { - name string - args args - want TLE - want1 error - }{ - { - name: "Simple ISS test", - args: args{ - inputTLE: `ISS (ZARYA) -1 25544U 98067A 19229.39083552 .00000228 00000-0 11917-4 0 9993 -2 25544 51.6447 57.6210 0007373 294.0868 138.8050 15.50381554184754`, - }, - want: TLE{}, - want1: nil, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - got, got1 := StringToTLE(tt.args.inputTLE) - if !reflect.DeepEqual(got, tt.want) { - t.Errorf("StringToTLE() got = %v, want %v", got, tt.want) - } - if !reflect.DeepEqual(got1, tt.want1) { - t.Errorf("StringToTLE() got1 = %v, want %v", got1, tt.want1) - } - }) - } -} \ No newline at end of file -- cgit 1.4.1