|
12 | 12 |
|
13 | 13 | TEST_CASE("Construct scope_exit") { |
14 | 14 |
|
15 | | - beman::scope::scope_exit guard_exit1([] {}); |
16 | | - beman::scope::scope_exit guard_exit2 = [] {}; |
17 | | - beman::scope::scope_exit guard_exit3 = {[] {}}; |
| 15 | + // beman::scope::scope_exit guard_exit1([]) {}); |
| 16 | + // beman::scope::scope_exit guard_exit2 = [] {}; |
| 17 | + // beman::scope::scope_exit guard_exit3 = {[] {}}; |
18 | 18 |
|
19 | | - auto guard_exit4 = beman::scope::scope_exit([] {}); |
| 19 | + auto guard_exit4 = beman::scope::scope_exit([]() {}); |
20 | 20 |
|
21 | | - REQUIRE(true); |
| 21 | + REQUIRE(true); |
22 | 22 | } |
23 | 23 |
|
24 | 24 | TEST_CASE("Construct scope_fail") { |
25 | 25 |
|
26 | | - beman::scope::scope_fail guard_exit1([] {}); |
27 | | - beman::scope::scope_fail guard_exit2 = [] {}; |
28 | | - beman::scope::scope_fail guard_exit3 = {[] {}}; |
| 26 | + // beman::scope::scope_fail guard_exit1([] {}); |
| 27 | + // beman::scope::scope_fail guard_exit2 = [] {}; |
| 28 | + // beman::scope::scope_fail guard_exit3 = {[] {}}; |
29 | 29 |
|
30 | | - auto guard_exit4 = beman::scope::scope_fail([] {}); |
| 30 | + auto guard_exit4 = beman::scope::scope_fail([](){}); |
31 | 31 |
|
32 | | - REQUIRE(true); |
| 32 | + REQUIRE(true); |
33 | 33 | } |
34 | 34 |
|
35 | 35 | TEST_CASE("Construct scope_success") { |
36 | 36 |
|
37 | | - beman::scope::scope_success guard_exit1([] {}); |
38 | | - beman::scope::scope_success guard_exit2 = [] {}; |
39 | | - beman::scope::scope_success guard_exit3 = {[] {}}; |
| 37 | + // beman::scope::scope_success guard_exit1([] {}); |
| 38 | + // beman::scope::scope_success guard_exit2 = [] {}; |
| 39 | + // beman::scope::scope_success guard_exit3 = {[] {}}; |
40 | 40 |
|
41 | | - auto guard_exit4 = beman::scope::scope_success([] {}); |
| 41 | + auto guard_exit4 = beman::scope::scope_success([]() {}); |
42 | 42 |
|
43 | | - REQUIRE(true); |
| 43 | + REQUIRE(true); |
44 | 44 | } |
0 commit comments