frostfs-node/pkg/core/netmap/epoch/marshal_test.go

21 lines
252 B
Go
Raw Normal View History

2020-07-24 13:54:03 +00:00
package epoch
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestEpochMarshal(t *testing.T) {
e := FromUint64(1)
e2 := new(Epoch)
require.NoError(t,
e2.UnmarshalBinary(
Marshal(e),
),
)
require.True(t, EQ(e, *e2))
}