mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 09:46:02 -04:00
Add a basic Database unit test
This commit is contained in:
parent
9a17223ede
commit
64b35bbd4e
@ -31,7 +31,7 @@ void assertion_failed(const char* apFile, const long apLine, const char* apFunc,
|
||||
TEST(Database, ctor) {
|
||||
remove("test.db3");
|
||||
|
||||
EXPECT_THROW(SQLite::Database unknow("_unknow.db3"), SQLite::Exception);
|
||||
EXPECT_THROW(SQLite::Database absent("test.db3"), SQLite::Exception);
|
||||
SQLite::Database db("test.db3", SQLITE_OPEN_READWRITE|SQLITE_OPEN_CREATE);
|
||||
EXPECT_STREQ("test.db3", db.getFilename().c_str());
|
||||
EXPECT_FALSE(db.tableExists("test"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user