From 2fffebc2c1608f2ca914178844a3ac9334eebafb Mon Sep 17 00:00:00 2001 From: davidemazzocchi Date: Fri, 10 Oct 2025 09:01:54 +0200 Subject: [PATCH] test: add test for catalog new --- 01.workspace/heave/src/str/catalog.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/01.workspace/heave/src/str/catalog.rs b/01.workspace/heave/src/str/catalog.rs index 449623c..630e5ec 100644 --- a/01.workspace/heave/src/str/catalog.rs +++ b/01.workspace/heave/src/str/catalog.rs @@ -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()'