@@ -52,11 +52,11 @@ func TestVideo(t *testing.T) {
5252
5353func TestVideo_Validate (t * testing.T ) {
5454 subject := & Video {}
55- if exp , got := ErrInvalidVideoNoMimes , subject .Validate (); ! errors .Is (exp , got ) {
55+ if exp , got := ErrInvalidVideoNoMimes , subject .Validate (); ! errors .Is (got , exp ) {
5656 t .Fatalf ("expected %v, got %v" , exp , got )
5757 }
5858 subject = & Video {Mimes : []string {"video/mp4" }}
59- if exp , got := ErrInvalidVideoNoLinearity , subject .Validate (); ! errors .Is (exp , got ) {
59+ if exp , got := ErrInvalidVideoNoLinearity , subject .Validate (); ! errors .Is (got , exp ) {
6060 t .Fatalf ("expected %v, got %v" , exp , got )
6161 }
6262 subject = & Video {
@@ -65,7 +65,7 @@ func TestVideo_Validate(t *testing.T) {
6565 Linearity : VideoLinearityNonLinear ,
6666 Mimes : []string {"video/mp4" },
6767 }
68- if exp , got := ErrInvalidVideoNoProtocols , subject .Validate (); ! errors .Is (exp , got ) {
68+ if exp , got := ErrInvalidVideoNoProtocols , subject .Validate (); ! errors .Is (got , exp ) {
6969 t .Fatalf ("expected %v, got %v" , exp , got )
7070 }
7171}
0 commit comments