test: add test for catalog new
This commit is contained in:
@@ -238,7 +238,10 @@ mod tests {
|
|||||||
#[test]
|
#[test]
|
||||||
fn new_should_create_catalog_with_path_and_empty_items() {
|
fn new_should_create_catalog_with_path_and_empty_items() {
|
||||||
// Should create a new Catalog with the given path and an empty 'items' map.
|
// 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()'
|
// ## 'init()'
|
||||||
|
|||||||
Reference in New Issue
Block a user