catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
docs: Enable syntax coloring for code example
- Commit
3a865e8c0fe1c6db9939b3da62dadc571c40d592- Author
- offa ·
- Committer
- Martin Hořeňovský
- Parents
69e0473f6e98
Changes
docs/test-cases-and-sections.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/test-cases-and-sections.md b/docs/test-cases-and-sections.md index 14db55ae..e32ffa2a 100644 --- a/docs/test-cases-and-sections.md +++ b/docs/test-cases-and-sections.md @@ -36,10 +36,12 @@ Tags allow an arbitrary number of additional strings to be associated with a tes As an example - given the following test cases: - TEST_CASE( "A", "[widget]" ) { /* ... */ } - TEST_CASE( "B", "[widget]" ) { /* ... */ } - TEST_CASE( "C", "[gadget]" ) { /* ... */ } - TEST_CASE( "D", "[widget][gadget]" ) { /* ... */ } +```cpp +TEST_CASE( "A", "[widget]" ) { /* ... */ } +TEST_CASE( "B", "[widget]" ) { /* ... */ } +TEST_CASE( "C", "[gadget]" ) { /* ... */ } +TEST_CASE( "D", "[widget][gadget]" ) { /* ... */ } +``` The tag expression, ```"[widget]"``` selects A, B & D. ```"[gadget]"``` selects C & D. ```"[widget][gadget]"``` selects just D and ```"[widget],[gadget]"``` selects all four test cases.