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

summaryrefslogtreecommitdiffhomepage
path: root/extras/catch_amalgamated.hpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2026-07-26 22:19:31 +0200
committerMartin Hořeňovský2026-07-26 22:19:31 +0200
commit8b08d4d79514f45f7e4ce2a607ac9c94e920d1bb (patch)
tree6ae81663dc4ea2fd5024129daf8d3187ec1433a6 /extras/catch_amalgamated.hpp
parent1079da4c5f5fea2a31d795bba95eacaa2f622849 (diff)
downloadcatch3-3.15.3.tar.gz
v3.15.3v3.15.3
Diffstat (limited to 'extras/catch_amalgamated.hpp')
-rw-r--r--extras/catch_amalgamated.hpp18
1 files changed, 13 insertions, 5 deletions
diff --git a/extras/catch_amalgamated.hpp b/extras/catch_amalgamated.hpp
index 7e65eb93..a2d9a848 100644
--- a/extras/catch_amalgamated.hpp
+++ b/extras/catch_amalgamated.hpp
@@ -6,8 +6,8 @@
// SPDX-License-Identifier: BSL-1.0
-// Catch v3.15.2
-// Generated: 2026-07-07 20:39:49.020441
+// Catch v3.15.3
+// Generated: 2026-07-26 22:17:52.004020
// ----------------------------------------------------------
// This file is an amalgamation of multiple different files.
// You probably shouldn't edit it directly.
@@ -7572,7 +7572,7 @@ namespace Catch {
#define CATCH_VERSION_MAJOR 3
#define CATCH_VERSION_MINOR 15
-#define CATCH_VERSION_PATCH 2
+#define CATCH_VERSION_PATCH 3
#endif // CATCH_VERSION_MACROS_HPP_INCLUDED
@@ -7828,7 +7828,7 @@ namespace Generators {
void skipToNthElementImpl( std::size_t n ) override {
if ( n >= m_values.size() ) {
Detail::throw_generator_exception(
- "Coud not jump to Nth element: not enough elements" );
+ "Could not jump to Nth element: not enough elements" );
}
m_idx = n;
}
@@ -8011,7 +8011,7 @@ namespace Generators {
void skipToNthElementImpl( std::size_t n ) override {
if ( n >= m_target ) {
Detail::throw_generator_exception(
- "Coud not jump to Nth element: not enough elements" );
+ "Could not jump to Nth element: not enough elements" );
}
m_generator.skipToNthElement( n );
@@ -10309,11 +10309,19 @@ namespace Catch {
writeImpl( value, !std::is_arithmetic<T>::value );
}
void write( StringRef value ) &&;
+ void write( float value ) &&;
+ void write( double value ) &&;
void write( bool value ) &&;
private:
void writeImpl( StringRef value, bool quote );
+ // Helper to deal with non-finite floating point values, which
+ // are not standard JSON, but we use JS/Python/etc. approach of
+ // emitting `NaN`, `Infinity`, `-Infinity` as number(like).
+ template <typename T>
+ void writeFloatingPoint( T value );
+
// Without this SFINAE, this overload is a better match
// for `std::string`, `char const*`, `char const[N]` args.
// While it would still work, it would cause code bloat