diff --git a/hptp/src/encoding.rs b/hptp/src/encoding.rs index 80b1b62..e3ea8d9 100644 --- a/hptp/src/encoding.rs +++ b/hptp/src/encoding.rs @@ -95,9 +95,9 @@ mod tests { #[test] fn test_encode() { - let vec = vec!['a' as u8, 'b' as u8, 'c' as u8, 'd' as u8, + let vec = vec!['a' as u8, '4' as u8, 'c' as u8, 'd' as u8, '\n' as u8, 'e' as u8, 'f' as u8]; - assert_eq!(MeowCoder::encode(&vec), vec![0xab, 0xcd, 0xef]); + assert_eq!(MeowCoder::encode(&vec), vec![0xa4, 0xcd, 0xef]); } #[test]