diff options
Diffstat (limited to 'crates/mozart-core/src/suggest.rs')
| -rw-r--r-- | crates/mozart-core/src/suggest.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/crates/mozart-core/src/suggest.rs b/crates/mozart-core/src/suggest.rs index 9311fdb..299355e 100644 --- a/crates/mozart-core/src/suggest.rs +++ b/crates/mozart-core/src/suggest.rs @@ -96,14 +96,10 @@ pub fn format_did_you_mean(suggestions: &[&str]) -> Option<String> { Some(format!("Did you mean {}?", formatted)) } -// ─── Tests ─────────────────────────────────────────────────────────────────── - #[cfg(test)] mod tests { use super::*; - // ── levenshtein ─────────────────────────────────────────────────────────── - #[test] fn test_levenshtein_identical() { assert_eq!(levenshtein("psr/log", "psr/log"), 0); @@ -150,8 +146,6 @@ mod tests { assert_eq!(levenshtein("monolog/monolog", "monolong/monolog"), 1); } - // ── find_similar ────────────────────────────────────────────────────────── - #[test] fn test_find_similar_returns_close_matches() { let candidates = ["psr/log", "psr/cache", "monolog/monolog", "symfony/console"]; @@ -196,8 +190,6 @@ mod tests { assert!(results.is_empty()); } - // ── format_did_you_mean ─────────────────────────────────────────────────── - #[test] fn test_format_did_you_mean_empty() { assert!(format_did_you_mean(&[]).is_none()); |
