kima2/test/test_database.cpp

15 lines
No EOL
249 B
C++

#define BOOST_TEST_MODULE database
#include "../src/core/database.h"
#include <filesystem>
#include <boost/test/included/unit_test.hpp>
BOOST_AUTO_TEST_CASE(create_database)
{
Database db(":memory:");
BOOST_CHECK_NO_THROW(db.init());
}