Skip to content

Commit

Permalink
ending zero
Browse files Browse the repository at this point in the history
  • Loading branch information
a10y committed Aug 15, 2024
1 parent 4208f22 commit af4046b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/correctness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ fn test_zeros() {
let training_data: Vec<u8> = vec![0, 1, 2, 3, 4, 0];
let trained = fsst_rs::train(&training_data);
println!("compressing with zeros");
let compressed = trained.compress(&[0, 4]);
let compressed = trained.compress(&[4, 0]);
println!("decomperssing with zeros");
assert_eq!(trained.decompress(&compressed), &[0, 4]);
assert_eq!(trained.decompress(&compressed), &[4, 0]);
println!("done");
}

Expand Down

0 comments on commit af4046b

Please sign in to comment.