aboutsummaryrefslogtreecommitdiff
path: root/go/storage/replica_placement_test.go
blob: 9c2161e944ae3c0d2b4d6ae03f7843c0d0c26383 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package storage

import (
	"testing"
)

func TestReplicaPlacemnetSerialDeserial(t *testing.T) {
	rp, _ := NewReplicaPlacementFromString("001")
	new_rp, _ := NewReplicaPlacementFromByte(rp.Byte())
	if rp.String() != new_rp.String() {
		println("expected:", rp.String(), "actual:", new_rp.String())
		t.Fail()
	}
}