fuzzyhash 0.2.1

Pure Rust fuzzy hash implementation
Documentation
1
2
3
4
5
6
7
8
9
10
use fuzzyhash::FuzzyHash;

#[test]
pub fn fix_breakage() {
    let first = FuzzyHash::from("3072:oQGiMXTMkux9BPSd0n4bmzwuy+WAAux3i8:op1XTsbBBnnU8nAu48");
    let second = FuzzyHash::from(
        "3072:zszq392p8xWp9+fbhBpmLOCeTFvm7RAkEmq8RPFc21xgpYn9R:Agse0Yb//hu7RAkc87go9",
    );
    assert_eq!(first.compare_to(&second), Some(0));
}