mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 23:26:54 +08:00
13 lines
203 B
Go
13 lines
203 B
Go
package jpeg
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestStartOfImageMarshal(t *testing.T) {
|
|
buf := StartOfImage{}.Marshal(nil)
|
|
require.Equal(t, []byte{0xff, 0xd8}, buf)
|
|
}
|