From 02162e998d9cf7815963786f790c0e0c22f3ea24 Mon Sep 17 00:00:00 2001 From: Kieran Moy Date: Fri, 22 Nov 2024 23:20:05 +0800 Subject: [PATCH] keep the original --- helix-core/src/comment.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helix-core/src/comment.rs b/helix-core/src/comment.rs index ae2f736d6..3eaf39908 100644 --- a/helix-core/src/comment.rs +++ b/helix-core/src/comment.rs @@ -345,7 +345,7 @@ mod test { let text = doc.slice(..); - let res = find_line_comment("#", text, 0..3); + let res = find_line_comment("//", text, 0..3); // (commented = false, to_change = [line 0, line 2], min = col 2, margin = 0) assert_eq!(res, (false, vec![0, 2], 2, 0)); } @@ -353,9 +353,9 @@ mod test { #[test] fn is_commented() { // three lines where the second line is empty. - let doc = Rope::from("# hello\n\n# there"); + let doc = Rope::from("// hello\n\n// there"); - let res = find_line_comment("#", doc.slice(..), 0..3); + let res = find_line_comment("//", doc.slice(..), 0..3); // (commented = true, to_change = [line 0, line 2], min = col 0, margin = 1) assert_eq!(res, (true, vec![0, 2], 0, 1));