You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							14 lines
						
					
					
						
							314 B
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							14 lines
						
					
					
						
							314 B
						
					
					
				
								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()
							 | 
						|
									}
							 | 
						|
								}
							 |