From 4702c01553a8747f72026a52269426097b4cc4d5 Mon Sep 17 00:00:00 2001 From: Vincent Esche Date: Fri, 8 Jan 2021 15:41:08 +0100 Subject: Fixed typos in tests --- crates/mbe/src/tests.rs | 2 +- crates/rust-analyzer/src/lsp_utils.rs | 8 ++++---- crates/rust-analyzer/src/markdown.rs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/mbe/src/tests.rs b/crates/mbe/src/tests.rs index d854985c5..ecea15c11 100644 --- a/crates/mbe/src/tests.rs +++ b/crates/mbe/src/tests.rs @@ -1967,7 +1967,7 @@ fn test_no_space_after_semi_colon() { #[test] fn test_rustc_issue_57597() { fn test_error(fixture: &str) { - assert_eq!(parse_macro_error(fixture), ParseError::RepetitionEmtpyTokenTree); + assert_eq!(parse_macro_error(fixture), ParseError::RepetitionEmptyTokenTree); } test_error("macro_rules! foo { ($($($i:ident)?)+) => {}; }"); diff --git a/crates/rust-analyzer/src/lsp_utils.rs b/crates/rust-analyzer/src/lsp_utils.rs index 6ca94921f..2d06fe538 100644 --- a/crates/rust-analyzer/src/lsp_utils.rs +++ b/crates/rust-analyzer/src/lsp_utils.rs @@ -290,7 +290,7 @@ mod tests { Some(vec![disjoint_edit.clone(), joint_edit.clone()]); assert!( !all_edits_are_disjoint(&completion_with_joint_edits, &[]), - "Completion with disjoint edits fails the validaton even with empty extra edits" + "Completion with disjoint edits fails the validation even with empty extra edits" ); completion_with_joint_edits.text_edit = @@ -298,7 +298,7 @@ mod tests { completion_with_joint_edits.additional_text_edits = Some(vec![joint_edit.clone()]); assert!( !all_edits_are_disjoint(&completion_with_joint_edits, &[]), - "Completion with disjoint edits fails the validaton even with empty extra edits" + "Completion with disjoint edits fails the validation even with empty extra edits" ); completion_with_joint_edits.text_edit = @@ -310,7 +310,7 @@ mod tests { completion_with_joint_edits.additional_text_edits = None; assert!( !all_edits_are_disjoint(&completion_with_joint_edits, &[]), - "Completion with disjoint edits fails the validaton even with empty extra edits" + "Completion with disjoint edits fails the validation even with empty extra edits" ); completion_with_joint_edits.text_edit = @@ -322,7 +322,7 @@ mod tests { completion_with_joint_edits.additional_text_edits = Some(vec![joint_edit]); assert!( !all_edits_are_disjoint(&completion_with_joint_edits, &[]), - "Completion with disjoint edits fails the validaton even with empty extra edits" + "Completion with disjoint edits fails the validation even with empty extra edits" ); } diff --git a/crates/rust-analyzer/src/markdown.rs b/crates/rust-analyzer/src/markdown.rs index a49a58c00..865eaae9b 100644 --- a/crates/rust-analyzer/src/markdown.rs +++ b/crates/rust-analyzer/src/markdown.rs @@ -106,7 +106,7 @@ mod tests { #[test] fn test_format_docs_preserves_newlines() { - let comment = "this\nis\nultiline"; + let comment = "this\nis\nmultiline"; assert_eq!(format_docs(comment), comment); } -- cgit v1.2.3