assert.to_le_bytes to assert.as_bytes
This commit is contained in:
		
							parent
							
								
									0d80bb58aa
								
							
						
					
					
						commit
						4edb95d247
					
				| @ -257,7 +257,7 @@ mod tests { | |||||||
| 
 | 
 | ||||||
|     #[test] |     #[test] | ||||||
|     fn test_login_checksum_ack() { |     fn test_login_checksum_ack() { | ||||||
|         let mut checksum_ack = super::ChecksumAck::new(1); |         let checksum_ack = super::ChecksumAck::new(1); | ||||||
|         assert!(u32::to_le_bytes(checksum_ack.ack) == [0x01, 0x00, 0x00, 0x00]); |         assert!(u32::as_bytes(checksum_ack.ack) == [0x00, 0x00, 0x00, 0x01]); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user