Add 'Introduced in Catch 2.8.0.' text

This commit is contained in:
Clare Macrae 2019-07-21 21:13:58 +01:00 committed by Martin Hořeňovský
parent e7c3bdb351
commit 4511dc0c16

View File

@ -71,6 +71,8 @@ CATCH_TRANSLATE_EXCEPTION( MyType& ex ) {
## Enums ## Enums
> Introduced in Catch 2.8.0.
Enums that already have a `<<` overload for `std::ostream` will convert to strings as expected. 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. 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. 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 ## 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` Catch provides a built-in `StringMaker` specialization for both `float`
and `double`. By default, it uses what we think is a reasonable precision, and `double`. By default, it uses what we think is a reasonable precision,
but you can customize it by modifying the `precision` static variable but you can customize it by modifying the `precision` static variable