mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 17:29:55 +00:00
7d1cd11ba9
To avoid duplicated compilation for openmw translation units. Link openmw-lib to openmw-tests instead.
15 lines
325 B
C++
15 lines
325 B
C++
#include <components/sqlite3/db.hpp>
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
namespace
|
|
{
|
|
using namespace testing;
|
|
using namespace Sqlite3;
|
|
|
|
TEST(Sqlite3DbTest, makeDbShouldCreateInMemoryDbWithSchema)
|
|
{
|
|
const auto db = makeDb(":memory:", "CREATE TABLE test ( id INTEGER )");
|
|
EXPECT_NE(db, nullptr);
|
|
}
|
|
}
|