From 3a865e8c0fe1c6db9939b3da62dadc571c40d592 Mon Sep 17 00:00:00 2001 From: offa <8887756+offa@users.noreply.github.com> Date: Fri, 29 May 2026 09:37:14 +0200 Subject: [PATCH] docs: Enable syntax coloring for code example --- 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.