diff --git a/README.md b/README.md index dbdf9325..648de619 100644 --- a/README.md +++ b/README.md @@ -879,7 +879,7 @@ int main() { ```cpp export module boost.ut; /// __cpp_modules -namespace boost::ut::inline v1_1_3 { +namespace boost::ut::inline v1_1_4 { /** * Represents test suite object */ @@ -1224,7 +1224,7 @@ namespace boost::ut::inline v1_1_3 { | Option | Description | Example | |-|-|-| -| `BOOST_UT_VERSION` | Current version | `1'1'3` | +| `BOOST_UT_VERSION` | Current version | `1'1'4` | | `BOOST_UT_FORWARD` | Optionally used in `.cpp` files to speed up compilation of multiple suites | | | `BOOST_UT_IMPLEMENTATION` | Optionally used in `main.cpp` file to provide `ut` implementation (have to be used in combination with `BOOST_UT_FORWARD`) | | diff --git a/example/mut.cpp b/example/mut.cpp index 2ccf68e1..db7a38cc 100644 --- a/example/mut.cpp +++ b/example/mut.cpp @@ -10,7 +10,7 @@ int main() { using namespace boost::ut; - auto i = 0; // mutable + auto i = 0; // mutable "mut"_test = [i] { !expect(i == 0_i); diff --git a/example/should.cpp b/example/should.cpp index d3ae2b17..3e6d0119 100644 --- a/example/should.cpp +++ b/example/should.cpp @@ -13,9 +13,7 @@ int main() { auto i = 0; !expect(i == 0_i); - should("return increased number for ++") = [i] { - expect(++mut(i) == 1_i); - }; + should("return increased number for ++") = [i] { expect(++mut(i) == 1_i); }; should("return decreased number for --") = [i]() mutable { expect(--i == -1_i); diff --git a/example/suite.cpp b/example/suite.cpp index 21634853..052598c2 100644 --- a/example/suite.cpp +++ b/example/suite.cpp @@ -12,13 +12,11 @@ namespace ut = boost::ut; ut::suite errors = [] { using namespace ut; - "exception"_test = [] { - expect(throws([] { throw 0; })) << "throws any exception"; - }; + "exception"_test = [] { + expect(throws([] { throw 0; })) << "throws any exception"; + }; - "failure"_test = [] { - expect(nothrow([]{})); - }; + "failure"_test = [] { expect(nothrow([] {})); }; }; int main() {} diff --git a/include/boost/ut.hpp b/include/boost/ut.hpp index 7e129dbd..dc3765ca 100644 --- a/include/boost/ut.hpp +++ b/include/boost/ut.hpp @@ -73,7 +73,7 @@ export namespace boost::ut { namespace boost::ut { #endif -inline namespace v1_1_3 { +inline namespace v1_1_4 { namespace utility { class string_view { public: @@ -1958,6 +1958,6 @@ using operators::operator and; using operators::operator or; using operators::operator not; using operators::operator|; -} // namespace v1_1_3 +} // namespace v1_1_4 } // namespace boost::ut #endif