From 825e67dacc350f6a7b56e760793d4f199e866aff Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 14 Oct 2015 01:53:15 +0100 Subject: Add test over lazy pointer operator bool --- libadhocutil/unittests/testLazyPointer.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.2.3