diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-03-03 11:44:01 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-03-03 11:44:01 +0000 |
commit | 17aaece6b39c2fb525be0eccce4626fc622e8236 (patch) | |
tree | 864de162bea4cf160a78d56d6f3a0c0fd82ca73a /crates/ra_ide_api/src | |
parent | 00b09bcd8c96c37633964aa40df711dc013a6ca5 (diff) | |
parent | 2e8f25884584ec7dd21bdd4be1bcf1c857efa35e (diff) |
Merge #917
917: Trait tests r=flodiebold a=flodiebold
This adds a bunch of basic tests for trait functionality, just to outline what seems like the first goals for that ;)
It also changes the display of `Ty::Unknown` to `{unknown}`, since `[unknown]` could be confused with a slice, and fixes an error in the emacs runnables code.
Co-authored-by: Florian Diebold <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src')
-rw-r--r-- | crates/ra_ide_api/src/hover.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/hover.rs b/crates/ra_ide_api/src/hover.rs index 4722206e2..8ec60090d 100644 --- a/crates/ra_ide_api/src/hover.rs +++ b/crates/ra_ide_api/src/hover.rs | |||
@@ -474,7 +474,7 @@ mod tests { | |||
474 | ); | 474 | ); |
475 | 475 | ||
476 | let type_name = analysis.type_of(range).unwrap().unwrap(); | 476 | let type_name = analysis.type_of(range).unwrap().unwrap(); |
477 | assert_eq!("[unknown]", &type_name); | 477 | assert_eq!("{unknown}", &type_name); |
478 | } | 478 | } |
479 | 479 | ||
480 | #[test] | 480 | #[test] |