stuff-from-scratch/test/database/TestDatabase.cpp

14 lines
321 B
C++
Raw Normal View History

2022-01-01 18:46:31 +00:00
#include "DatabaseManager.h"
2022-11-29 18:00:19 +00:00
#include "TestFramework.h"
2022-12-01 10:52:48 +00:00
#include "TestUtils.h"
2022-11-29 18:00:19 +00:00
TEST_CASE(TestDatabaseManager, "database")
2022-01-01 18:46:31 +00:00
{
DatabaseManager db_manager;
2022-12-01 10:52:48 +00:00
db_manager.openDatabase(TestUtils::getTestOutputDir() / "test.db");
2022-01-01 18:46:31 +00:00
std::string statement = "CREATE TABLE corporation;";
2022-12-01 10:52:48 +00:00
db_manager.run(statement);
2022-01-01 18:46:31 +00:00
}