aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ssr/src/tests.rs
diff options
context:
space:
mode:
authorDavid Lattimore <[email protected]>2020-07-22 10:15:19 +0100
committerDavid Lattimore <[email protected]>2020-07-24 12:34:00 +0100
commit113abbeefee671266d2d9bebdbd517eb8b802ef8 (patch)
treea7c44c0490b09f06034cb82966b8a61f681c4433 /crates/ra_ssr/src/tests.rs
parent1fce8b6ba32bebba36d588d07781e9e578845728 (diff)
SSR: Parse template as Rust code.
This is in preparation for a subsequent commit where we add special handling for paths in the template, allowing them to be qualified differently in different contexts.
Diffstat (limited to 'crates/ra_ssr/src/tests.rs')
-rw-r--r--crates/ra_ssr/src/tests.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ssr/src/tests.rs b/crates/ra_ssr/src/tests.rs
index 9f5306592..1b03b7f4b 100644
--- a/crates/ra_ssr/src/tests.rs
+++ b/crates/ra_ssr/src/tests.rs
@@ -37,7 +37,7 @@ fn parser_repeated_name() {
37fn parser_invalid_pattern() { 37fn parser_invalid_pattern() {
38 assert_eq!( 38 assert_eq!(
39 parse_error_text(" ==>> ()"), 39 parse_error_text(" ==>> ()"),
40 "Parse error: Pattern is not a valid Rust expression, type, item, path or pattern" 40 "Parse error: Not a valid Rust expression, type, item, path or pattern"
41 ); 41 );
42} 42}
43 43
@@ -45,7 +45,7 @@ fn parser_invalid_pattern() {
45fn parser_invalid_template() { 45fn parser_invalid_template() {
46 assert_eq!( 46 assert_eq!(
47 parse_error_text("() ==>> )"), 47 parse_error_text("() ==>> )"),
48 "Parse error: Replacement is not a valid Rust expression, type, item, path or pattern" 48 "Parse error: Not a valid Rust expression, type, item, path or pattern"
49 ); 49 );
50} 50}
51 51