discord-bot/libs/sqlite_orm-1.8.2/tests/filename.cpp

20 lines
461 B
C++
Raw Normal View History

2024-02-25 14:05:45 -05:00
#include <sqlite_orm/sqlite_orm.h>
#include <catch2/catch_all.hpp>
using namespace sqlite_orm;
TEST_CASE("filename") {
{
auto storage = make_storage("");
REQUIRE(storage.filename() == "");
}
{
auto storage = make_storage(":memory:");
REQUIRE(storage.filename() == ":memory:");
}
{
auto storage = make_storage("myDatabase.sqlite");
REQUIRE(storage.filename() == "myDatabase.sqlite");
}
}