From 0f6c048ce1a621ccd3e2080ec5aafbd053c516f4 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 29 Aug 2019 16:49:10 +0300 Subject: :arrow_up: insta --- crates/ra_ide_api/src/completion/presentation.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'crates/ra_ide_api/src/completion/presentation.rs') diff --git a/crates/ra_ide_api/src/completion/presentation.rs b/crates/ra_ide_api/src/completion/presentation.rs index 147ceda0c..f19eec9b7 100644 --- a/crates/ra_ide_api/src/completion/presentation.rs +++ b/crates/ra_ide_api/src/completion/presentation.rs @@ -186,7 +186,7 @@ impl Completions { #[cfg(test)] mod tests { use crate::completion::{do_completion, CompletionItem, CompletionKind}; - use insta::assert_debug_snapshot_matches; + use insta::assert_debug_snapshot; use test_utils::covers; fn do_reference_completion(code: &str) -> Vec { @@ -196,7 +196,7 @@ mod tests { #[test] fn inserts_parens_for_function_calls() { covers!(inserts_parens_for_function_calls); - assert_debug_snapshot_matches!( + assert_debug_snapshot!( do_reference_completion( r" fn no_args() {} @@ -222,7 +222,7 @@ mod tests { }, ]"### ); - assert_debug_snapshot_matches!( + assert_debug_snapshot!( do_reference_completion( r" fn with_args(x: i32, y: String) {} @@ -248,7 +248,7 @@ mod tests { }, ]"### ); - assert_debug_snapshot_matches!( + assert_debug_snapshot!( do_reference_completion( r" struct S {} @@ -275,7 +275,7 @@ mod tests { #[test] fn dont_render_function_parens_in_use_item() { - assert_debug_snapshot_matches!( + assert_debug_snapshot!( do_reference_completion( " //- /lib.rs @@ -298,7 +298,7 @@ mod tests { #[test] fn dont_render_function_parens_if_already_call() { - assert_debug_snapshot_matches!( + assert_debug_snapshot!( do_reference_completion( " //- /lib.rs @@ -327,7 +327,7 @@ mod tests { }, ]"# ); - assert_debug_snapshot_matches!( + assert_debug_snapshot!( do_reference_completion( " //- /lib.rs -- cgit v1.2.3