diff options
author | bravomikekilo <[email protected]> | 2019-11-21 18:51:40 +0000 |
---|---|---|
committer | bravomikekilo <[email protected]> | 2019-11-21 18:51:40 +0000 |
commit | 8a8be062194604360bbb27ee11961b8a72973f44 (patch) | |
tree | 368cb308aed82b6d0e226b4fe769f75d69f9d743 /crates/ra_assists/src/doc_tests | |
parent | d0a9ed50da054d74721c6c51124696a20de5843b (diff) |
initial invert_if
Diffstat (limited to 'crates/ra_assists/src/doc_tests')
-rw-r--r-- | crates/ra_assists/src/doc_tests/generated.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/crates/ra_assists/src/doc_tests/generated.rs b/crates/ra_assists/src/doc_tests/generated.rs index 176761efb..1ccc016d3 100644 --- a/crates/ra_assists/src/doc_tests/generated.rs +++ b/crates/ra_assists/src/doc_tests/generated.rs | |||
@@ -342,6 +342,23 @@ fn main() { | |||
342 | } | 342 | } |
343 | 343 | ||
344 | #[test] | 344 | #[test] |
345 | fn doctest_invert_if() { | ||
346 | check( | ||
347 | "invert_if", | ||
348 | r#####" | ||
349 | fn main() { | ||
350 | if<|> !y {A} else {B} | ||
351 | } | ||
352 | "#####, | ||
353 | r#####" | ||
354 | fn main() { | ||
355 | if y {B} else {A} | ||
356 | } | ||
357 | "#####, | ||
358 | ) | ||
359 | } | ||
360 | |||
361 | #[test] | ||
345 | fn doctest_make_raw_string() { | 362 | fn doctest_make_raw_string() { |
346 | check( | 363 | check( |
347 | "make_raw_string", | 364 | "make_raw_string", |