⬆️ insta

This commit is contained in:
Aleksey Kladov 2019-08-29 16:49:10 +03:00
parent 5a99184967
commit 0f6c048ce1
26 changed files with 1446 additions and 1486 deletions

View file

@ -72,7 +72,7 @@ pub(super) fn complete_postfix(acc: &mut Completions, ctx: &CompletionContext) {
#[cfg(test)]
mod tests {
use crate::completion::{do_completion, CompletionItem, CompletionKind};
use insta::assert_debug_snapshot_matches;
use insta::assert_debug_snapshot;
fn do_postfix_completion(code: &str) -> Vec<CompletionItem> {
do_completion(code, CompletionKind::Postfix)
@ -80,7 +80,7 @@ mod tests {
#[test]
fn postfix_completion_works_for_trivial_path_expression() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_postfix_completion(
r#"
fn main() {
@ -152,7 +152,7 @@ mod tests {
#[test]
fn some_postfix_completions_ignored() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_postfix_completion(
r#"
fn main() {