diff options
author | Aleksey Kladov <[email protected]> | 2020-11-30 10:45:32 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-11-30 10:47:38 +0000 |
commit | 8c3472b6f98efed1eb4e1bd9540946fe66fc5863 (patch) | |
tree | 8730283a64ba7af48fe0eb6cb59f3f5df27e19ae /crates/assists/src/tests | |
parent | ac30710ada112984c9cf79c4af39ad666d000171 (diff) |
Minor cleanup
Diffstat (limited to 'crates/assists/src/tests')
-rw-r--r-- | crates/assists/src/tests/generated.rs | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/crates/assists/src/tests/generated.rs b/crates/assists/src/tests/generated.rs index 5a9d1a01b..8d50c8791 100644 --- a/crates/assists/src/tests/generated.rs +++ b/crates/assists/src/tests/generated.rs | |||
@@ -474,26 +474,6 @@ impl<T: Clone> Ctx<T> { | |||
474 | } | 474 | } |
475 | 475 | ||
476 | #[test] | 476 | #[test] |
477 | fn doctest_ignore_test() { | ||
478 | check_doc_test( | ||
479 | "ignore_test", | ||
480 | r#####" | ||
481 | <|>#[test] | ||
482 | fn arithmetics { | ||
483 | assert_eq!(2 + 2, 5); | ||
484 | } | ||
485 | "#####, | ||
486 | r#####" | ||
487 | #[test] | ||
488 | #[ignore] | ||
489 | fn arithmetics { | ||
490 | assert_eq!(2 + 2, 5); | ||
491 | } | ||
492 | "#####, | ||
493 | ) | ||
494 | } | ||
495 | |||
496 | #[test] | ||
497 | fn doctest_infer_function_return_type() { | 477 | fn doctest_infer_function_return_type() { |
498 | check_doc_test( | 478 | check_doc_test( |
499 | "infer_function_return_type", | 479 | "infer_function_return_type", |
@@ -979,6 +959,26 @@ use std::{collections::HashMap}; | |||
979 | } | 959 | } |
980 | 960 | ||
981 | #[test] | 961 | #[test] |
962 | fn doctest_toggle_ignore() { | ||
963 | check_doc_test( | ||
964 | "toggle_ignore", | ||
965 | r#####" | ||
966 | <|>#[test] | ||
967 | fn arithmetics { | ||
968 | assert_eq!(2 + 2, 5); | ||
969 | } | ||
970 | "#####, | ||
971 | r#####" | ||
972 | #[test] | ||
973 | #[ignore] | ||
974 | fn arithmetics { | ||
975 | assert_eq!(2 + 2, 5); | ||
976 | } | ||
977 | "#####, | ||
978 | ) | ||
979 | } | ||
980 | |||
981 | #[test] | ||
982 | fn doctest_unwrap_block() { | 982 | fn doctest_unwrap_block() { |
983 | check_doc_test( | 983 | check_doc_test( |
984 | "unwrap_block", | 984 | "unwrap_block", |