From 8c3472b6f98efed1eb4e1bd9540946fe66fc5863 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 30 Nov 2020 13:45:32 +0300 Subject: Minor cleanup --- crates/assists/src/tests/generated.rs | 40 +++++++++++++++++------------------ 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'crates/assists/src/tests/generated.rs') 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 @@ -473,26 +473,6 @@ impl Ctx { ) } -#[test] -fn doctest_ignore_test() { - check_doc_test( - "ignore_test", - r#####" -<|>#[test] -fn arithmetics { - assert_eq!(2 + 2, 5); -} -"#####, - r#####" -#[test] -#[ignore] -fn arithmetics { - assert_eq!(2 + 2, 5); -} -"#####, - ) -} - #[test] fn doctest_infer_function_return_type() { check_doc_test( @@ -978,6 +958,26 @@ use std::{collections::HashMap}; ) } +#[test] +fn doctest_toggle_ignore() { + check_doc_test( + "toggle_ignore", + r#####" +<|>#[test] +fn arithmetics { + assert_eq!(2 + 2, 5); +} +"#####, + r#####" +#[test] +#[ignore] +fn arithmetics { + assert_eq!(2 + 2, 5); +} +"#####, + ) +} + #[test] fn doctest_unwrap_block() { check_doc_test( -- cgit v1.2.3