diff options
author | Emile <hanemile@protonmail.com> | 2019-08-18 20:49:43 +0200 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-08-18 20:49:43 +0200 |
commit | 587feea7f35c17e28b05ff3fccac579bfc67e10b (patch) | |
tree | 0002131e1843fc25399011eb2c272a3e20548d7e | |
parent | af60e2a12d913bb548bdb0a883bbaa53327abe6c (diff) |
added tests
-rw-r--r-- | TLE_test.go | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/TLE_test.go b/TLE_test.go new file mode 100644 index 0000000..f5db76f --- /dev/null +++ b/TLE_test.go @@ -0,0 +1,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) + } + }) + } +} \ No newline at end of file |