We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddb2f87 commit 1ab58b1Copy full SHA for 1ab58b1
crates/ide-assists/src/tests/generated.rs
@@ -2,6 +2,31 @@
2
3
use super::check_doc_test;
4
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
18
19
20
+ 1 => {
21
+ n + 1
22
+ },
23
24
25
26
27
+ )
28
29
+
30
#[test]
31
fn doctest_add_explicit_type() {
32
check_doc_test(
0 commit comments