aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart-core/src/suggest.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-05 17:29:12 +0900
committernsfisis <nsfisis@gmail.com>2026-05-05 17:29:12 +0900
commit49b0884701a84731652fc934d428932ff6029bd4 (patch)
tree7477029b8ed686b9b3b06d960cab2b54ba87b579 /crates/mozart-core/src/suggest.rs
parent4623874d1c95414dcd5ae194d2561f2d98b40982 (diff)
downloadphp-mozart-49b0884701a84731652fc934d428932ff6029bd4.tar.gz
php-mozart-49b0884701a84731652fc934d428932ff6029bd4.tar.zst
php-mozart-49b0884701a84731652fc934d428932ff6029bd4.zip
chore: remove redundant comments
Diffstat (limited to 'crates/mozart-core/src/suggest.rs')
-rw-r--r--crates/mozart-core/src/suggest.rs8
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());