Add enum hover action test.
This commit is contained in:
parent
5d0c1aa162
commit
92cfc0f2a1
1 changed files with 15 additions and 0 deletions
|
@ -1161,4 +1161,19 @@ fn func(foo: i32) { if true { <|>foo; }; }
|
|||
);
|
||||
assert_impl_action(&actions[0], 6);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_hover_enum_has_impl_action() {
|
||||
let (_, actions) = check_hover_result(
|
||||
"
|
||||
//- /lib.rs
|
||||
enum foo<|>() {
|
||||
A,
|
||||
B
|
||||
}
|
||||
",
|
||||
&["enum foo"],
|
||||
);
|
||||
assert_impl_action(&actions[0], 5);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue