github.com/bluenviron/mediacommon@v1.9.3/pkg/codecs/jpeg/start_of_image_test.go (about)

     1  package jpeg
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/require"
     7  )
     8  
     9  func TestStartOfImageMarshal(t *testing.T) {
    10  	buf := StartOfImage{}.Marshal(nil)
    11  	require.Equal(t, []byte{0xff, 0xd8}, buf)
    12  }