]> git.lizzy.rs Git - rust.git/commitdiff
One more test
authorKirill Bulatov <mail4score@gmail.com>
Thu, 10 Sep 2020 21:20:13 +0000 (00:20 +0300)
committerKirill Bulatov <mail4score@gmail.com>
Thu, 10 Sep 2020 21:20:13 +0000 (00:20 +0300)
crates/assists/src/handlers/remove_dbg.rs

index 9397efd63d5550f0f72b164d6be205f5fd4d7664..0b581dc22a27163427d15f50290c2a585c264e2f 100644 (file)
@@ -242,6 +242,8 @@ fn test_remove_dbg_keep_expression() {
             r#"let res = <|>dbg!(a + b).foo();"#,
             r#"let res = (a + b).foo();"#,
         );
+
+        check_assist(remove_dbg, r#"let res = <|>dbg!(2 + 2) * 5"#, r#"let res = (2 + 2) * 5"#);
     }
 
     #[test]