aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoris2022-11-27 15:42:31 +0100
committerJoris2022-11-27 15:42:31 +0100
commit155d8d96574a5ba141767da1af57afde55fccf6f (patch)
tree1d5e6eacf40eb1673fef781540fa5781ec9fada5 /src
parentd3fb69cf129fe70c932a5d82fdd1bcc613544b5b (diff)
Fix sync tests
Diffstat (limited to 'src')
-rw-r--r--src/sync.rs6
1 files changed, 3 insertions, 3 deletions
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,