Skip to content

Commit 723467b

Browse files
committed
tests: update test in assist apply_demorgan
1 parent 85bcced commit 723467b

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/tools/rust-analyzer/crates/ide-assists/src/handlers/apply_demorgan.rs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -333,16 +333,14 @@ fn f() { !(S <= S || S < S) }
333333
check_assist(apply_demorgan, "fn f() { (x ||$0 x) }", "fn f() { !(!x && !x) }")
334334
}
335335

336-
// FIXME : This needs to go.
337-
// // https://github.com/rust-lang/rust-analyzer/issues/10963
338-
// #[test]
339-
// fn demorgan_doesnt_hang() {
340-
// check_assist(
341-
// apply_demorgan,
342-
// "fn f() { 1 || 3 &&$0 4 || 5 }",
343-
// "fn f() { !(!1 || !3 || !4) || 5 }",
344-
// )
345-
// }
336+
#[test]
337+
fn demorgan_doesnt_hang() {
338+
check_assist(
339+
apply_demorgan,
340+
"fn f() { 1 || 3 &&$0 4 || 5 }",
341+
"fn f() { 1 || !(!3 || !4) || 5 }",
342+
)
343+
}
346344

347345
#[test]
348346
fn demorgan_keep_pars_for_op_precedence() {

0 commit comments

Comments
 (0)