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

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2
diff options
context:
space:
mode:
authordvir arad2026-07-24 15:33:21 +0300
committerMartin Hořeňovský2026-07-24 17:12:50 +0200
commit1a9625a6e78f455b63a4bac080fb284c9ec57731 (patch)
tree5ef177d726a96cd41bacff6e1122494f4bbdb3c8 /src/catch2
parentbb8873ccd710d55a4fa7cc02d710fdb4da69cfb0 (diff)
downloadcatch3-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).
Diffstat (limited to 'src/catch2')
-rw-r--r--src/catch2/generators/catch_generators.hpp2
-rw-r--r--src/catch2/generators/catch_generators_adapters.hpp2
-rw-r--r--src/catch2/interfaces/catch_interfaces_generatortracker.cpp2
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" );
}
}
}