| 8 | #include <boost/ut.hpp> |
| 9 | |
| 10 | int main() { |
| 11 | using namespace boost::ut; |
| 12 | |
| 13 | auto i = 0; |
| 14 | expect((i == 0_i) >> fatal); |
| 15 | |
| 16 | should("return increased number for ++") = [i] { expect(++mut(i) == 1_i); }; |
| 17 | should("return decreased number for --") = [i]() mutable { |
| 18 | expect(--i == -1_i); |
| 19 | }; |
| 20 | } |