From 155d8d96574a5ba141767da1af57afde55fccf6f Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 27 Nov 2022 15:42:31 +0100 Subject: Fix sync tests --- src/sync.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/sync.rs b/src/sync.rs index 3911d55..1635ad6 100644 --- a/src/sync.rs +++ b/src/sync.rs @@ -103,7 +103,7 @@ mod tests { use super::*; #[test] - fn sync() { + fn test_diff() { let db_entries = vec![ DbEntry { question: "A".to_string(), @@ -142,11 +142,11 @@ mod tests { }, ]; - let Res { + let Diff { new, deleted, undeleted, - } = sync(db_entries, lines); + } = diff(db_entries, lines); assert_eq!( new, -- cgit v1.2.3