mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
cpp higlighting for test-cases-and-sections.md
add c++ highlighting for the last two examples, all others already have highlighting
This commit is contained in:
parent
c1720d0c42
commit
23f023f9ed
@ -165,7 +165,7 @@ or the _template-args_.
|
|||||||
|
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
```
|
```cpp
|
||||||
template< typename T>
|
template< typename T>
|
||||||
struct Foo {
|
struct Foo {
|
||||||
size_t size() {
|
size_t size() {
|
||||||
@ -180,7 +180,7 @@ TEMPLATE_PRODUCT_TEST_CASE("A Template product test case", "[template][product]"
|
|||||||
```
|
```
|
||||||
|
|
||||||
You can also have different arities in the _template-arg_ packs:
|
You can also have different arities in the _template-arg_ packs:
|
||||||
```
|
```cpp
|
||||||
TEMPLATE_PRODUCT_TEST_CASE("Product with differing arities", "[template][product]", std::tuple, (int, (int, double), (int, double, float))) {
|
TEMPLATE_PRODUCT_TEST_CASE("Product with differing arities", "[template][product]", std::tuple, (int, (int, double), (int, double, float))) {
|
||||||
TestType x;
|
TestType x;
|
||||||
REQUIRE(std::tuple_size<TestType>::value >= 1);
|
REQUIRE(std::tuple_size<TestType>::value >= 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user