From f8a1048ffeec6322c1e64a0eda7636a977669898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Sat, 17 Mar 2018 17:33:17 +0100 Subject: Re-apply "Use std::optional instead of OptionalBool" This reverts commit 03714c6cebf90dc7db8e3997a18cdd19e039c667. --- tests/database.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') 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() == ""); o.col() = "ISO-8859-1"; - CHECK(o.col().is_set == false); - o.col().set_value(false); + CHECK(!o.col()); + o.col() = 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); + CHECK(o.col()); + CHECK(*o.col() == false); } SECTION("Channel options with server default") -- cgit v1.2.3