diff --git a/src/packet/login.rs b/src/packet/login.rs index 0af5437..59042e7 100644 --- a/src/packet/login.rs +++ b/src/packet/login.rs @@ -257,7 +257,8 @@ mod tests { #[test] fn test_login_checksum_ack() { - let checksum_ack = super::ChecksumAck::new(1); - assert!(u32::as_bytes(checksum_ack.ack) == [0x00, 0x00, 0x00, 0x01]); + use super::PSOPacket; + let pkt = super::ChecksumAck::new(1); + assert!(pkt.as_bytes() == [0xC, 0, 0xE8, 0x01, 0,0,0,0, 1,0,0,0]); } }