assert.to_le_bytes to assert.as_bytes

This commit is contained in:
Andy 2019-09-01 14:57:08 -03:00
parent 0d80bb58aa
commit 4edb95d247

View File

@ -257,7 +257,7 @@ mod tests {
#[test]
fn test_login_checksum_ack() {
let mut checksum_ack = super::ChecksumAck::new(1);
assert!(u32::to_le_bytes(checksum_ack.ack) == [0x01, 0x00, 0x00, 0x00]);
let checksum_ack = super::ChecksumAck::new(1);
assert!(u32::as_bytes(checksum_ack.ack) == [0x00, 0x00, 0x00, 0x01]);
}
}