summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-10-14 01:53:15 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-10-14 01:57:17 +0100
commit825e67dacc350f6a7b56e760793d4f199e866aff (patch)
treed63f8cf9a37b62344f4c25df4a02869b41ae1b8c
parentTest HTTP request with custom header (diff)
downloadlibadhocutil-825e67dacc350f6a7b56e760793d4f199e866aff.tar.bz2
libadhocutil-825e67dacc350f6a7b56e760793d4f199e866aff.tar.xz
libadhocutil-825e67dacc350f6a7b56e760793d4f199e866aff.zip
Add test over lazy pointer operator bool
-rw-r--r--libadhocutil/unittests/testLazyPointer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libadhocutil/unittests/testLazyPointer.cpp b/libadhocutil/unittests/testLazyPointer.cpp
index 3b69c80..b376cc5 100644
--- a/libadhocutil/unittests/testLazyPointer.cpp
+++ b/libadhocutil/unittests/testLazyPointer.cpp
@@ -38,6 +38,8 @@ BOOST_AUTO_TEST_CASE ( islazy )
BOOST_REQUIRE_EQUAL(false, p.hasValue());
Test * t = p.get();
BOOST_REQUIRE(t);
+ bool pbool = p;
+ BOOST_REQUIRE(pbool);
BOOST_REQUIRE_EQUAL(true, p.hasValue());
BOOST_REQUIRE_EQUAL(p, t);
BOOST_REQUIRE_EQUAL(3, t->val);