Skip to content

Commit

Permalink
Add named suite example
Browse files Browse the repository at this point in the history
  • Loading branch information
xkaraman authored Jan 3, 2024
1 parent cb4800e commit 075ffba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ All tests passed (3 asserts in 3 tests)
> `tests` defined inside will be automatically registered 👍
```cpp
suite errors = [] {
suite errors = [] { // or suite<"nameofsuite">
"exception"_test = [] {
expect(throws([] { throw 0; })) << "throws any exception";
};
Expand Down

0 comments on commit 075ffba

Please sign in to comment.