Amend to TestWorld_RadarFromRover to show the issue
This commit is contained in:
		
							parent
							
								
									d9e97ea468
								
							
						
					
					
						commit
						3e1e3a5456
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -121,6 +121,12 @@ func TestWorld_RadarFromRover(t *testing.T) {
 | 
				
			||||||
	// Test the expected values
 | 
						// Test the expected values
 | 
				
			||||||
	assert.Equal(t, byte(objects.Rover), objs[1+fullRange])
 | 
						assert.Equal(t, byte(objects.Rover), objs[1+fullRange])
 | 
				
			||||||
	assert.Equal(t, byte(objects.Rover), objs[4+4*fullRange])
 | 
						assert.Equal(t, byte(objects.Rover), objs[4+4*fullRange])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// Check the radar results are stable
 | 
				
			||||||
 | 
						radar1, objs1, err := world.RadarFromRover(a)
 | 
				
			||||||
 | 
						radar2, objs2, err := world.RadarFromRover(a)
 | 
				
			||||||
 | 
						assert.Equal(t, radar1, radar2)
 | 
				
			||||||
 | 
						assert.Equal(t, objs1, objs2)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func TestWorld_RoverStash(t *testing.T) {
 | 
					func TestWorld_RoverStash(t *testing.T) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue