kima2/test/test_database.cpp

15 lines
249 B
C++
Raw Normal View History

2018-07-09 21:42:38 +02:00
#define BOOST_TEST_MODULE database
#include "../src/core/database.h"
2018-07-10 14:12:37 +02:00
#include <filesystem>
2018-07-09 21:42:38 +02:00
#include <boost/test/included/unit_test.hpp>
2018-07-10 15:46:55 +02:00
BOOST_AUTO_TEST_CASE(create_database)
{
2018-07-09 21:42:38 +02:00
2018-07-11 11:53:15 +02:00
Database db(":memory:");
BOOST_CHECK_NO_THROW(db.init());
2018-07-10 15:46:55 +02:00
2018-07-09 21:42:38 +02:00
}