Skip to content

Commit

Permalink
doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
beling committed Mar 14, 2024
1 parent b43baaf commit a1f3304
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minimum_redundancy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ assert_eq!(decoder_for_b.consume(0), DecodingResult::Value(&'b'));
let mut decoder_for_c = huffman.decoder();
assert_eq!(decoder_for_c.consume(0), DecodingResult::Incomplete);
assert_eq!(decoder_for_c.consume(1), DecodingResult::Value(&'c'));
assert_eq!(huffman.total_fragments_count(), 5);
assert_eq!(huffman.values.as_ref(), ['a', 'b', 'c']);
assert_eq!(huffman.total_fragments_count(), 5); // 1+2+2
assert_eq!(huffman.values.as_ref(), ['a', 'b', 'c']); // sorted by frequencies
```

0 comments on commit a1f3304

Please sign in to comment.