test: add test for catalog new

This commit is contained in:
2025-10-10 09:01:54 +02:00
parent 8a9119e692
commit 2fffebc2c1

View File

@@ -238,7 +238,10 @@ mod tests {
#[test]
fn new_should_create_catalog_with_path_and_empty_items() {
// Should create a new Catalog with the given path and an empty 'items' map.
todo!();
let path = "test.db";
let catalog = Catalog::new(path);
assert_eq!(catalog.path, path);
assert!(catalog.items.is_empty());
}
// ## 'init()'