You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tetra-pei/tetra/tetra_test.go

18 lines
282 B
Go

package tetra
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestHexBinaryRoundtrip(t *testing.T) {
hex := "82000201546573746E6163687269636874"
pdu, err := HexToBinary(hex)
assert.NoError(t, err)
actual := BinaryToHex(pdu)
assert.Equal(t, hex, actual)
}