From 4511dc0c16794a795aabac120aae18bd02edb964 Mon Sep 17 00:00:00 2001 From: Clare Macrae Date: Sun, 21 Jul 2019 21:13:58 +0100 Subject: [PATCH] Add 'Introduced in Catch 2.8.0.' text --- docs/tostring.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/tostring.md b/docs/tostring.md index a4f8659c..156c895a 100644 --- a/docs/tostring.md +++ b/docs/tostring.md @@ -71,6 +71,8 @@ CATCH_TRANSLATE_EXCEPTION( MyType& ex ) { ## Enums +> Introduced in Catch 2.8.0. + Enums that already have a `<<` overload for `std::ostream` will convert to strings as expected. If you only need to convert enums to strings for test reporting purposes you can provide a `StringMaker` specialisations as any other type. However, as a convenience, Catch provides the `REGISTER_ENUM` helper macro that will generate the `StringMaker` specialiation for you with minimal code. @@ -108,6 +110,8 @@ TEST_CASE() { ## Floating point precision +> [Introduced](https://github.com/catchorg/Catch2/issues/1614) in Catch 2.8.0. + Catch provides a built-in `StringMaker` specialization for both `float` and `double`. By default, it uses what we think is a reasonable precision, but you can customize it by modifying the `precision` static variable