aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ssr/src/tests.rs
diff options
context:
space:
mode:
authorDavid Lattimore <[email protected]>2020-06-30 01:43:37 +0100
committerDavid Lattimore <[email protected]>2020-06-30 01:43:37 +0100
commitef49bbeec430586b847a0ef84264b7afaf36112a (patch)
tree72f017abf6dc5c501e324226ba9b7449ed9225f0 /crates/ra_ssr/src/tests.rs
parent2bd717139918e15e537dcd833bb003e85d24b3d1 (diff)
Fix some typos
Diffstat (limited to 'crates/ra_ssr/src/tests.rs')
-rw-r--r--crates/ra_ssr/src/tests.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_ssr/src/tests.rs b/crates/ra_ssr/src/tests.rs
index 8be60c293..57b2f50b2 100644
--- a/crates/ra_ssr/src/tests.rs
+++ b/crates/ra_ssr/src/tests.rs
@@ -152,12 +152,12 @@ fn parse_error_text(query: &str) -> String {
152 152
153#[test] 153#[test]
154fn parser_empty_query() { 154fn parser_empty_query() {
155 assert_eq!(parse_error_text(""), "Parse error: Cannot find delemiter `==>>`"); 155 assert_eq!(parse_error_text(""), "Parse error: Cannot find delimiter `==>>`");
156} 156}
157 157
158#[test] 158#[test]
159fn parser_no_delimiter() { 159fn parser_no_delimiter() {
160 assert_eq!(parse_error_text("foo()"), "Parse error: Cannot find delemiter `==>>`"); 160 assert_eq!(parse_error_text("foo()"), "Parse error: Cannot find delimiter `==>>`");
161} 161}
162 162
163#[test] 163#[test]
@@ -227,7 +227,7 @@ fn assert_ssr_transforms(rules: &[&str], input: &str, result: &str) {
227 let mut after = db.file_text(file_id).to_string(); 227 let mut after = db.file_text(file_id).to_string();
228 edits.apply(&mut after); 228 edits.apply(&mut after);
229 // Likewise, we need to make sure that whatever transformations fixture parsing applies, 229 // Likewise, we need to make sure that whatever transformations fixture parsing applies,
230 // also get appplied to our expected result. 230 // also get applied to our expected result.
231 let result = normalize_code(result); 231 let result = normalize_code(result);
232 assert_eq!(after, result); 232 assert_eq!(after, result);
233 } else { 233 } else {