Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/internal/catch_reusable_string_stream.cpp
diff options
context:
space:
mode:
authorIan Bell2024-04-15 05:35:39 -0600
committerGitHub2024-04-15 13:35:39 +0200
commit53ddf37af4488cac7724761858ae3cca9d2d65e7 (patch)
tree76b3ea40c8f489b2300dc19096fe8cd617b14349 /src/catch2/internal/catch_reusable_string_stream.cpp
parent029fe3b4609dd84cd939b73357f37bbb75bcf82f (diff)
downloadcatch3-53ddf37af4488cac7724761858ae3cca9d2d65e7.tar.gz
Use Catch::StringMaker for output in WithinRelMatcher (#2846)
The WithinRelMatcher does not listen to the precision specification; it just naively pipes to stringstream. If you specify the precision, that has no impact on the outputted values when the match fails. This fix makes the WithinRelMatcher listen to the precision (https://github.com/catchorg/Catch2/blob/devel/docs/tostring.md#floating-point-precision) specified by: Catch::StringMaker<float>::precision
Diffstat (limited to 'src/catch2/internal/catch_reusable_string_stream.cpp')
0 files changed, 0 insertions, 0 deletions