Skip to content

Commit 1ab58b1

Browse files
committed
cargo test
1 parent ddb2f87 commit 1ab58b1

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

crates/ide-assists/src/tests/generated.rs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,31 @@
22
33
use super::check_doc_test;
44

5+
#[test]
6+
fn doctest_add_braces() {
7+
check_doc_test(
8+
"add_braces",
9+
r#####"
10+
fn foo(n: i32) -> i32 {
11+
match n {
12+
1 =>$0 n + 1,
13+
_ => 0
14+
}
15+
}
16+
"#####,
17+
r#####"
18+
fn foo(n: i32) -> i32 {
19+
match n {
20+
1 => {
21+
n + 1
22+
},
23+
_ => 0
24+
}
25+
}
26+
"#####,
27+
)
28+
}
29+
530
#[test]
631
fn doctest_add_explicit_type() {
732
check_doc_test(

0 commit comments

Comments
 (0)