From 70c8c368328989bf58f3b207781befc44588b5bb Mon Sep 17 00:00:00 2001 From: gwenn Date: Sun, 10 Mar 2024 17:24:36 +0100 Subject: [PATCH] Try to improve test coverage --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index d069169..c6738d4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2238,7 +2238,7 @@ mod test { let db = Connection::open_in_memory()?; assert_eq!(db.db_name(0), Ok("main")); assert_eq!(db.db_name(1), Ok("temp")); - assert!(db.db_name(2).is_err()); + assert_eq!(db.db_name(2), Err(Error::InvalidDatabaseIndex(2))); db.execute_batch("ATTACH DATABASE ':memory:' AS xyz;")?; assert_eq!(db.db_name(2), Ok("xyz")); Ok(())