diff --git a/libimagstore/src/store.rs b/libimagstore/src/store.rs index d46aaebe..e3c8bad8 100644 --- a/libimagstore/src/store.rs +++ b/libimagstore/src/store.rs @@ -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); } } }