From 6062642a03390c4dce1b5604087e64db9d7ed126 Mon Sep 17 00:00:00 2001 From: Nxirda Date: Wed, 21 Jan 2026 20:56:56 +0100 Subject: [PATCH 1/2] Doc layout & non uniform info --- README.md | 5 +++-- doc/index.hpp | 8 +++++--- include/tts/tools/types.hpp | 8 ++++---- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 07010c5..a18cde1 100644 --- a/README.md +++ b/README.md @@ -28,11 +28,12 @@ TTS is thus suitable for numerical-heavy testing. # A Short Example -[See it live on Compiler Explorer](https://godbolt.org/z/cM5sxMxjo) +[See it live on Compiler Explorer](https://godbolt.org/z/5s3P1r4sr) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c++ #define TTS_MAIN #include +#include TTS_CASE( "Check expectations" ) { @@ -51,7 +52,7 @@ TTS_CASE( "Check relationship between values" ) TTS_GREATER_EQUAL(x,3.5f); }; -void foo(bool x) { if(x) throw std::runtime_error{"THIS IS AN ERROR"}; } +void foo(bool x) { if(x) throw std::runtime_error{"THIS IS AN ERROR"}; }; TTS_CASE( "Check runtime exceptions" ) { diff --git a/doc/index.hpp b/doc/index.hpp index e23fbe2..cd57407 100644 --- a/doc/index.hpp +++ b/doc/index.hpp @@ -18,9 +18,10 @@ Those features make **TTS** suitable for numerical-heavy testing. # Supported Compilers - + g++ 10.3 and superior - + clang 12 and superior + + g++ 11.1 and superior + + clang 13 and superior + Visual Studio 17 2022 v19.30.30709.0 + + clang-CL 15.0.1 or superior + emscripten 3.1.14 # A Short Example @@ -28,6 +29,7 @@ @code #define TTS_MAIN // No need for main() #include + #include TTS_CASE( "Check expectations" ) { @@ -46,7 +48,7 @@ TTS_GREATER_EQUAL(x,3.5f); }; - void foo(bool x) { if(x) throw std::runtime_error{"THIS IS AN ERROR"}; } + void foo(bool x) { if(x) throw std::runtime_error{"THIS IS AN ERROR"}; }; TTS_CASE( "Check runtime exceptions" ) { diff --git a/include/tts/tools/types.hpp b/include/tts/tools/types.hpp index 7e43412..29f92e2 100644 --- a/include/tts/tools/types.hpp +++ b/include/tts/tools/types.hpp @@ -55,7 +55,7 @@ namespace tts /** @brief Generate the Cartesian product of two type lists Given two types lists L1 and L2, generate a new types list containing all possible - combinations of types from L1 and L2 as a types where T1 is from L1 and T2 is from L2. + combinations of types from L1 and L2 as a types where T1 is from L1 and T2 is from L2. @tparam L1 First types list @tparam L2 Second types list @@ -80,15 +80,15 @@ namespace tts /** @brief Filter a types list by a predicate Using an unary predicate template, filter a types list to only keep the types for which the -predicate evaluates to true. + predicate evaluates to true. @tparam Pred Predicate template taking a single type parameter and exposing a static boolean -member `value` + member `value` @tparam Type Types list to filter @groupheader{Example} @snippet doc/filter.cpp snippet -**/ + **/ //==================================================================================================================== template typename Pred, typename Type> struct filter { From 51f60ae13280888d8c9ffa90783fff61aabfec75 Mon Sep 17 00:00:00 2001 From: Nxirda Date: Thu, 22 Jan 2026 08:12:06 +0100 Subject: [PATCH 2/2] Comma typo & CE fix --- README.md | 4 ++-- doc/index.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a18cde1..bbd6e75 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ TTS is thus suitable for numerical-heavy testing. # A Short Example -[See it live on Compiler Explorer](https://godbolt.org/z/5s3P1r4sr) +[See it live on Compiler Explorer](https://godbolt.org/z/KTrGW437T) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c++ #define TTS_MAIN @@ -52,7 +52,7 @@ TTS_CASE( "Check relationship between values" ) TTS_GREATER_EQUAL(x,3.5f); }; -void foo(bool x) { if(x) throw std::runtime_error{"THIS IS AN ERROR"}; }; +void foo(bool x) { if(x) throw std::runtime_error{"THIS IS AN ERROR"}; } TTS_CASE( "Check runtime exceptions" ) { diff --git a/doc/index.hpp b/doc/index.hpp index cd57407..bc6dd9f 100644 --- a/doc/index.hpp +++ b/doc/index.hpp @@ -48,7 +48,7 @@ TTS_GREATER_EQUAL(x,3.5f); }; - void foo(bool x) { if(x) throw std::runtime_error{"THIS IS AN ERROR"}; }; + void foo(bool x) { if(x) throw std::runtime_error{"THIS IS AN ERROR"}; } TTS_CASE( "Check runtime exceptions" ) {