rtp: finished testing function, works, but first test failing

This commit is contained in:
saxon 2018-11-17 17:04:26 +10:30
parent 9f329d49b6
commit a6cbfee22b
1 changed files with 5 additions and 3 deletions

View File

@ -63,8 +63,10 @@ var rtpTests = []struct {
} }
func TestRtpPktToByteSlice(t *testing.T) { func TestRtpPktToByteSlice(t *testing.T) {
got := rtpTests.pkt for _, test := range rtpTests {
if !reflect.DeepEqual(got, tests.Want) { got := test.pkt
t.Errorf("unexpected error for %q: got:%v want:%v", test.num, got, tests.Want) if !reflect.DeepEqual(got, test.want) {
t.Errorf("unexpected error for %q: got:%v want:%v", test.num, got, test.want)
}
} }
} }