tests::can_parse_le
				
					
				
			This commit is contained in:
		
							parent
							
								
									1836d97e41
								
							
						
					
					
						commit
						58790a58d0
					
				@ -65,4 +65,12 @@ mod tests {
 | 
			
		||||
    fn can_parse_zero() {
 | 
			
		||||
        assert_eq!(u64::parse_slice(&[0, 0, 0, 0, 0, 0, 0, 0]).unwrap(), 0);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    #[test]
 | 
			
		||||
    fn can_parse_le() {
 | 
			
		||||
        assert_eq!(
 | 
			
		||||
            u64::parse_slice(&[1, 2, 3, 4, 5, 6, 7, 8]).unwrap(),
 | 
			
		||||
            0x0807060504030201,
 | 
			
		||||
        );
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user