about summary refs log tree commit diff
path: root/TLE_test.go
blob: f5db76fc10a70dc4683267c93a237a76ee9b5b07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package TLE

import (
	"reflect"
	"testing"
)

func TestTLEfromString(t *testing.T) {
	type args struct {
		TLE string
	}
	tests := []struct {
		name string
		args args
		want tlebytes
	}{
		{
			name: "start",
			args: args{
				TLE: `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
				A`,
			},
			want: tlebytes{},
		},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			if got := TLEfromString(tt.args.TLE); !reflect.DeepEqual(got, tt.want) {
				t.Errorf("TLEfromString() = %v, want %v", got, tt.want)
			}
		})
	}
}