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) {
|
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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue