diff options
Diffstat (limited to 'crates/ra_hir/src/ty/tests.rs')
-rw-r--r-- | crates/ra_hir/src/ty/tests.rs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs index cbdb2a4b7..8aacb1a7f 100644 --- a/crates/ra_hir/src/ty/tests.rs +++ b/crates/ra_hir/src/ty/tests.rs | |||
@@ -135,7 +135,7 @@ fn test(a: &u32, b: &mut u32, c: *const u32, d: *mut u32) { | |||
135 | #[test] | 135 | #[test] |
136 | fn infer_literals() { | 136 | fn infer_literals() { |
137 | check_inference( | 137 | check_inference( |
138 | r#" | 138 | r##" |
139 | fn test() { | 139 | fn test() { |
140 | 5i32; | 140 | 5i32; |
141 | "hello"; | 141 | "hello"; |
@@ -146,8 +146,14 @@ fn test() { | |||
146 | 5000; | 146 | 5000; |
147 | false; | 147 | false; |
148 | true; | 148 | true; |
149 | } | 149 | r#" |
150 | "#, | 150 | //! doc |
151 | // non-doc | ||
152 | mod foo {} | ||
153 | "#; | ||
154 | br#"yolo"#; | ||
155 | } | ||
156 | "##, | ||
151 | "literals.txt", | 157 | "literals.txt", |
152 | ); | 158 | ); |
153 | } | 159 | } |