diff options
| author | offa | 2026-05-29 09:37:14 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2026-05-31 17:17:46 +0200 |
| commit | 3a865e8c0fe1c6db9939b3da62dadc571c40d592 (patch) | |
| tree | 31526b077aad047474ea3235997d51f94dda1b07 | |
| parent | 69e0473f6e98d47c93518424c08ee69ee632c0f0 (diff) | |
| download | catch3-3a865e8c0fe1c6db9939b3da62dadc571c40d592.tar.gz | |
docs: Enable syntax coloring for code example
| -rw-r--r-- | docs/test-cases-and-sections.md | 10 |
1 files 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. |