Add assert to Store::get() the new ID

This commit is contained in:
Matthias Beyer 2016-10-03 12:33:38 +02:00
parent f16c09a981
commit 1244a6666f

View file

@ -2404,6 +2404,11 @@ mod store_tests {
let id_mv_with_base = id_mv.clone().with_base(store.path().clone());
assert!(store.entries.read().unwrap().get(&id_mv_with_base).is_some());
}
assert!(match store.get(id.clone()) { Ok(None) => true, _ => false },
"Moved id ({:?}) is still there", id);
assert!(match store.get(id_mv.clone()) { Ok(Some(_)) => true, _ => false },
"New id ({:?}) is not in store...", id_mv);
}
}
}