mirror of https://bitbucket.org/ausocean/av.git
rtp: finished testing function, works, but first test failing
This commit is contained in:
parent
9f329d49b6
commit
a6cbfee22b
|
@ -63,8 +63,10 @@ var rtpTests = []struct {
|
|||
}
|
||||
|
||||
func TestRtpPktToByteSlice(t *testing.T) {
|
||||
got := rtpTests.pkt
|
||||
if !reflect.DeepEqual(got, tests.Want) {
|
||||
t.Errorf("unexpected error for %q: got:%v want:%v", test.num, got, tests.Want)
|
||||
for _, test := range rtpTests {
|
||||
got := test.pkt
|
||||
if !reflect.DeepEqual(got, test.want) {
|
||||
t.Errorf("unexpected error for %q: got:%v want:%v", test.num, got, test.want)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue