Browse Source

assert.to_le_bytes to assert.as_bytes

pull/3/head
Andy 5 years ago
parent
commit
4edb95d247
  1. 4
      src/packet/login.rs

4
src/packet/login.rs

@ -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);
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]);
} }
} }
Loading…
Cancel
Save