Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authoroffa2026-05-29 09:37:14 +0200
committerMartin Hořeňovský2026-05-31 17:17:46 +0200
commit3a865e8c0fe1c6db9939b3da62dadc571c40d592 (patch)
tree31526b077aad047474ea3235997d51f94dda1b07 /docs
parent69e0473f6e98d47c93518424c08ee69ee632c0f0 (diff)
downloadcatch3-3a865e8c0fe1c6db9939b3da62dadc571c40d592.tar.gz
docs: Enable syntax coloring for code example
Diffstat (limited to 'docs')
-rw-r--r--docs/test-cases-and-sections.md10
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.