Searched refs:osa_distance (Results 1 – 4 of 4) sorted by relevance
/third_party/rust/crates/strsim-rs/src/ |
D | lib.rs | 267 pub fn osa_distance(a: &str, b: &str) -> usize { in osa_distance() function 763 assert_eq!(0, osa_distance("", "")); in osa_distance_empty() 768 assert_eq!(0, osa_distance("damerau", "damerau")); in osa_distance_same() 773 assert_eq!(7, osa_distance("", "damerau")); in osa_distance_first_empty() 778 assert_eq!(7, osa_distance("damerau", "")); in osa_distance_second_empty() 783 assert_eq!(3, osa_distance("ca", "abc")); in osa_distance_diff() 788 assert_eq!(3, osa_distance("damerau", "aderua")); in osa_distance_diff_short() 793 assert_eq!(3, osa_distance("aderua", "damerau")); in osa_distance_diff_reversed() 798 assert_eq!(3, osa_distance("öঙ香", "abc")); in osa_distance_diff_multibyte() 799 assert_eq!(3, osa_distance("abc", "öঙ香")); in osa_distance_diff_multibyte() [all …]
|
/third_party/rust/crates/strsim-rs/tests/ |
D | lib.rs | 3 use strsim::{hamming, levenshtein, normalized_levenshtein, osa_distance,damerau_levenshtein, 26 assert_eq!(3, osa_distance("ac", "cba")); in osa_distance_works()
|
/third_party/rust/crates/strsim-rs/ |
D | README.md | 40 use strsim::{hamming, levenshtein, normalized_levenshtein, osa_distance, 54 assert_eq!(osa_distance("ac", "cba"), 3);
|
/third_party/rust/crates/strsim-rs/benches/ |
D | benches.rs | 70 strsim::osa_distance(&a, &b); in bench_osa_distance()
|