Browse Source

Test fixed.

main
offa 7 years ago
parent
commit
5e631ae734
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      test/ScopeSuccessTest.cpp

+ 2
- 1
test/ScopeSuccessTest.cpp View File

{ {
REQUIRE_THROWS([] { REQUIRE_THROWS([] {
const ThrowOnCopyMock noMove; const ThrowOnCopyMock noMove;
REQUIRE_CALL(noMove, deleter());
sr::scope_success<decltype(noMove)> guard{noMove}; sr::scope_success<decltype(noMove)> guard{noMove};
}());
}());
} }


TEST_CASE("exit function is not called if released", "[ScopeSuccess]") TEST_CASE("exit function is not called if released", "[ScopeSuccess]")

Loading…
Cancel
Save