We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da98a3f commit d3cd07eCopy full SHA for d3cd07e
src/compression/move_to_front.rs
@@ -43,18 +43,18 @@ mod test {
43
#[test]
44
fn $name() {
45
assert_eq!(move_to_front_encode($text), $encoded);
46
- assert_eq!(move_to_front_decode(&$encoded), $text);
+ assert_eq!(move_to_front_decode($encoded), $text);
47
}
48
)*
49
50
51
52
test_mtf! {
53
- empty: ("", vec![]),
54
- single_char: ("@", vec![64]),
55
- repeated_chars: ("aaba", vec![97, 0, 98, 1]),
56
- mixed_chars: ("aZ!", vec![97, 91, 35]),
57
- word: ("banana", vec![98, 98, 110, 1, 1, 1]),
58
- special_chars: ("\0\n\t", vec![0, 10, 10]),
+ empty: ("", &[]),
+ single_char: ("@", &[64]),
+ repeated_chars: ("aaba", &[97, 0, 98, 1]),
+ mixed_chars: ("aZ!", &[97, 91, 35]),
+ word: ("banana", &[98, 98, 110, 1, 1, 1]),
+ special_chars: ("\0\n\t", &[0, 10, 10]),
59
60
0 commit comments