From ba879a882e031d7b8503f78fe41d1210000c96ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Fri, 16 Mar 2018 00:53:47 +0100 Subject: Use std::optional instead of OptionalBool --- 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