diff options
| author | dvir arad | 2026-07-24 15:33:21 +0300 |
|---|---|---|
| committer | Martin Hořeňovský | 2026-07-24 17:12:50 +0200 |
| commit | 1a9625a6e78f455b63a4bac080fb284c9ec57731 (patch) | |
| tree | 5ef177d726a96cd41bacff6e1122494f4bbdb3c8 | |
| parent | bb8873ccd710d55a4fa7cc02d710fdb4da69cfb0 (diff) | |
| download | catch3-1a9625a6e78f455b63a4bac080fb284c9ec57731.tar.gz | |
Fix typo in generator exception message ("Coud" -> "Could")
The "Could not jump to Nth element: not enough elements" message thrown
by throw_generator_exception() had "Coud" misspelled in all three places
it appears (catch_generators.hpp, catch_generators_adapters.hpp, and
catch_interfaces_generatortracker.cpp).
| -rw-r--r-- | src/catch2/generators/catch_generators.hpp | 2 | ||||
| -rw-r--r-- | src/catch2/generators/catch_generators_adapters.hpp | 2 | ||||
| -rw-r--r-- | src/catch2/interfaces/catch_interfaces_generatortracker.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/catch2/generators/catch_generators.hpp b/src/catch2/generators/catch_generators.hpp index 63bcbf2f..a9208101 100644 --- a/src/catch2/generators/catch_generators.hpp +++ b/src/catch2/generators/catch_generators.hpp @@ -95,7 +95,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; } diff --git a/src/catch2/generators/catch_generators_adapters.hpp b/src/catch2/generators/catch_generators_adapters.hpp index 7e21671a..6449d0a6 100644 --- a/src/catch2/generators/catch_generators_adapters.hpp +++ b/src/catch2/generators/catch_generators_adapters.hpp @@ -27,7 +27,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 ); diff --git a/src/catch2/interfaces/catch_interfaces_generatortracker.cpp b/src/catch2/interfaces/catch_interfaces_generatortracker.cpp index 8442be4e..c924290a 100644 --- a/src/catch2/interfaces/catch_interfaces_generatortracker.cpp +++ b/src/catch2/interfaces/catch_interfaces_generatortracker.cpp @@ -28,7 +28,7 @@ namespace Catch { bool isValid = next(); if ( !isValid ) { Detail::throw_generator_exception( - "Coud not jump to Nth element: not enough elements" ); + "Could not jump to Nth element: not enough elements" ); } } } |