random test sometimes randomly fails
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Rust / build (pull_request) Failing after 1m4s
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Rust / build (pull_request) Failing after 1m4s
				
			This commit is contained in:
		
							parent
							
								
									487dd03713
								
							
						
					
					
						commit
						3133dcceeb
					
				
					 1 changed files with 8 additions and 3 deletions
				
			
		| 
						 | 
					@ -106,10 +106,15 @@ mod tests {
 | 
				
			||||||
    #[cfg(feature = "rand")]
 | 
					    #[cfg(feature = "rand")]
 | 
				
			||||||
    fn test() {
 | 
					    fn test() {
 | 
				
			||||||
        let mut rng = rand::rng();
 | 
					        let mut rng = rand::rng();
 | 
				
			||||||
        // two so test failure is less likely
 | 
					        // more so random failure is less likely
 | 
				
			||||||
        assert_ne!(
 | 
					        assert_ne!(
 | 
				
			||||||
            [rng.random::<Brightness>(), rng.random()],
 | 
					            [
 | 
				
			||||||
            [rng.random(), rng.random()]
 | 
					                rng.random::<Brightness>(),
 | 
				
			||||||
 | 
					                rng.random(),
 | 
				
			||||||
 | 
					                rng.random(),
 | 
				
			||||||
 | 
					                rng.random()
 | 
				
			||||||
 | 
					            ],
 | 
				
			||||||
 | 
					            [rng.random(), rng.random(), rng.random(), rng.random()]
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue