Skip to content

Commit

Permalink
⬆️ Bump version to v1.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
kris-jusiak committed Dec 6, 2019
1 parent 91f520b commit 66eb23d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 14 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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`) | |

Expand Down
2 changes: 1 addition & 1 deletion example/mut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 1 addition & 3 deletions example/should.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
10 changes: 4 additions & 6 deletions example/suite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {}
4 changes: 2 additions & 2 deletions include/boost/ut.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit 66eb23d

Please sign in to comment.