diff options
author | louiz’ <louiz@louiz.org> | 2018-03-17 17:33:17 +0100 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2018-03-17 17:34:00 +0100 |
commit | f8a1048ffeec6322c1e64a0eda7636a977669898 (patch) | |
tree | e5e4f8055e73437318a36bddebd1c6d426fdce8e /tests | |
parent | b956b9d1aa27ac71432839e286f3db0a19aebf6b (diff) | |
download | biboumi-f8a1048ffeec6322c1e64a0eda7636a977669898.tar.gz biboumi-f8a1048ffeec6322c1e64a0eda7636a977669898.tar.bz2 biboumi-f8a1048ffeec6322c1e64a0eda7636a977669898.tar.xz biboumi-f8a1048ffeec6322c1e64a0eda7636a977669898.zip |
Re-apply "Use std::optional<bool> instead of OptionalBool"
This reverts commit 03714c6cebf90dc7db8e3997a18cdd19e039c667.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/database.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/database.cpp b/tests/database.cpp index 7ab6da8..88b4834 100644 --- a/tests/database.cpp +++ b/tests/database.cpp @@ -56,13 +56,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); + CHECK(!o.col<Database::RecordHistoryOptional>()); + o.col<Database::RecordHistoryOptional>() = 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); + CHECK(o.col<Database::RecordHistoryOptional>()); + CHECK(*o.col<Database::RecordHistoryOptional>() == false); } SECTION("Channel options with server default") |