diff options
author | louiz’ <louiz@louiz.org> | 2017-06-16 09:52:40 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2017-06-16 09:54:36 +0200 |
commit | 40db183e3753486deaa43e950fff38579c5ced6f (patch) | |
tree | 8adfbb7649034d3ddc3290b825968442e09cad00 /tests | |
parent | 4a963cc480bb5a78e20380131ba886a7a23b0782 (diff) | |
download | biboumi-40db183e3753486deaa43e950fff38579c5ced6f.tar.gz biboumi-40db183e3753486deaa43e950fff38579c5ced6f.tar.bz2 biboumi-40db183e3753486deaa43e950fff38579c5ced6f.tar.xz biboumi-40db183e3753486deaa43e950fff38579c5ced6f.zip |
Using OptionalBool, add RecordHistoryOptional col into IrcChannelOptions table
ref #3269
Diffstat (limited to 'tests')
-rw-r--r-- | tests/database.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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<Database::EncodingIn>() == ""); o.col<Database::EncodingIn>() = "ISO-8859-1"; + CHECK(o.col<Database::RecordHistoryOptional>().is_set == false); + o.col<Database::RecordHistoryOptional>().set_value(false); o.save(Database::db); auto b = Database::get_irc_channel_options("zouzou@example.com", "irc.example.com", "#foo"); CHECK(o.col<Database::EncodingIn>() == "ISO-8859-1"); + CHECK(o.col<Database::RecordHistoryOptional>().is_set == true); + CHECK(o.col<Database::RecordHistoryOptional>().value == false); } SECTION("Channel options with server default") |