mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 13:08:52 +08:00
shell: add ec.decode command
This commit is contained in:
14
weed/storage/super_block/replica_placement_test.go
Normal file
14
weed/storage/super_block/replica_placement_test.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package super_block
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestReplicaPlacementSerialDeserial(t *testing.T) {
|
||||
rp, _ := NewReplicaPlacementFromString("001")
|
||||
newRp, _ := NewReplicaPlacementFromByte(rp.Byte())
|
||||
if rp.String() != newRp.String() {
|
||||
println("expected:", rp.String(), "actual:", newRp.String())
|
||||
t.Fail()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user