You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
-
- #include "scope_guard.h"
- #include <catch.hpp>
-
-
- TEST_CASE("deleter called on destruction", "[ScopeGuard]")
- {
- bool executed = false;
-
- {
- auto guard = scope_guard([&executed] { executed = true; });
- static_cast<void>(guard);
- }
-
- REQUIRE(executed == true);
- }
|