From 40db183e3753486deaa43e950fff38579c5ced6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Fri, 16 Jun 2017 09:52:40 +0200 Subject: Using OptionalBool, add RecordHistoryOptional col into IrcChannelOptions table ref #3269 --- tests/database.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/database.cpp b/tests/database.cpp index 47dfd7c..f49220a 100644 --- a/tests/database.cpp +++ b/tests/database.cpp @@ -33,9 +33,13 @@ TEST_CASE("Database") CHECK(o.col() == ""); o.col() = "ISO-8859-1"; + CHECK(o.col().is_set == false); + o.col().set_value(false); o.save(Database::db); auto b = Database::get_irc_channel_options("zouzou@example.com", "irc.example.com", "#foo"); CHECK(o.col() == "ISO-8859-1"); + CHECK(o.col().is_set == true); + CHECK(o.col().value == false); } SECTION("Channel options with server default") -- cgit v1.2.3