1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-18 19:42:53 +01:00
strawberry-audio-player-win.../tests/src/sqlite_test.cpp
2019-06-28 01:33:22 +02:00

17 lines
362 B
C++

#include <gtest/gtest.h>
#include <sqlite3.h>
TEST(SqliteTest, FTS3SupportEnabled) {
sqlite3* db = nullptr;
int rc = sqlite3_open(":memory:", &db);
ASSERT_EQ(0, rc);
char* errmsg = nullptr;
rc = sqlite3_exec(db, "CREATE VIRTUAL TABLE foo USING fts3(content, TEXT)", nullptr, nullptr, &errmsg);
ASSERT_EQ(0, rc) << errmsg;
sqlite3_close(db);
}