| 8 | #include <boost/ut.hpp> |
| 9 | |
| 10 | int main() { |
| 11 | using namespace boost::ut; |
| 12 | |
| 13 | cfg<override> = {.filter = "tag", .tag = {"execute"}}; |
| 14 | |
| 15 | // clang-format off |
| 16 | tag("execute") / skip / |
| 17 | "tag"_test = [] { |
| 18 | expect(42_i == 43) << "should not fire!"; |
| 19 | expect(false) << "should fail!"; |
| 20 | }; |
| 21 | |
| 22 | tag("execute") / "tag"_test= [] { |
| 23 | expect(42_i == 42); |
| 24 | }; |
| 25 | |
| 26 | tag("not executed") / "tag"_test= [] { |
| 27 | expect(43_i == 42); |
| 28 | }; |
| 29 | |
| 30 | tag("not executed") / tag("execute") / |
| 31 | "tag"_test= [] { |
| 32 | expect(42_i == 42); |
| 33 | }; |
| 34 | // clang-format on |
| 35 | } |