Skip to content

Commit 4c93a59

Browse files
committed
Fix typos
1 parent e8f4b60 commit 4c93a59

26 files changed

+100
-100
lines changed

BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ expand_template(
6868
cc_library(
6969
name = "catch2_generated",
7070
hdrs = ["catch2/catch_user_config.hpp"],
71-
include_prefix = ".", # to manipulate -I of dependenices
71+
include_prefix = ".", # to manipulate -I of dependencies
7272
visibility = ["//visibility:public"],
7373
)
7474

docs/command-line.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ specs. You can:
123123
This allows test cases that are tagged with **either** "[some-tag]" **or**
124124
"[other-tag]". A test case with both will obviously also pass the filter.
125125

126-
Note that commas take precendence over simple concatenation. This means
126+
Note that commas take precedence over simple concatenation. This means
127127
that `[a][b],[c]` accepts tests that are tagged with either both "[a]" and
128128
"[b]", or tests that are tagged with just "[c]".
129129

docs/generators.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ For floating point generators, the situation is much more complex.
219219
Generally Catch2 only promises reproducibility (or even just correctness!)
220220
on platforms that obey the IEEE-754 standard. Furthermore, reproducibility
221221
only applies between binaries that perform floating point math in the
222-
same way, e.g. if you compile a binary targetting the x87 FPU and another
223-
one targetting SSE2 for floating point math, their results will vary.
222+
same way, e.g. if you compile a binary targeting the x87 FPU and another
223+
one targeting SSE2 for floating point math, their results will vary.
224224
Similarly, binaries compiled with compiler flags that relax the IEEE-754
225225
adherence, e.g. `-ffast-math`, might provide different results than those
226226
compiled for strict IEEE-754 adherence.

docs/release-notes.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
* Removed redundant `CTEST_FILE` param when creating the indirection file for `PRE_TEST` discovery mode (#2936)
9494
* Rewrote the test discovery logic to use output from the JSON reporter
9595
* This means that `catch_discover_tests` now requires CMake 3.19 or newer
96-
* Added `ADD_TAGS_AS_LABELS` option. If specified, each CTest test will be labeled with corrensponding Catch2's test tag
96+
* Added `ADD_TAGS_AS_LABELS` option. If specified, each CTest test will be labeled with corresponding Catch2's test tag
9797
* Bumped up the minimum required CMake version to build Catch2 to 3.16
9898
* Meson build now provides option to avoid installing Catch2
9999
* Bazel build is moved to Bzlmod.
@@ -175,7 +175,7 @@
175175
### Improvements
176176
* Reintroduced support for GCC 5 and 6 (#2836)
177177
* As with VS2017, if they start causing trouble again, they will be dropped again.
178-
* Added workaround for targetting newest MacOS (Sonoma) using GCC (#2837, #2839)
178+
* Added workaround for targeting newest MacOS (Sonoma) using GCC (#2837, #2839)
179179
* `CATCH_CONFIG_DEFAULT_REPORTER` can now be an arbitrary reporter spec
180180
* Previously it could only be a plain reporter name, so it was impossible to compile in custom arguments to the reporter.
181181
* Improved performance of generating 64bit random integers by 20+%

docs/test-fixtures.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ TEST_CASE_PERSISTENT_FIXTURE( MyFixture, "Tests with MyFixture" ) {
130130
}
131131
```
132132
133-
This example demonstates two possible use-cases of this fixture type:
133+
This example demonstrates two possible use-cases of this fixture type:
134134
1. Improve test run times by reducing the amount of expensive and
135135
redundant setup and tear-down required.
136136
2. Reusing results from the previous partial run, in the current

src/catch2/internal/catch_decomposer.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
* when the compiler handles `ExprLhs<T> == b`, it also tries to resolve
4646
* the overload set for `b == ExprLhs<T>`.
4747
*
48-
* To accomodate these use cases, decomposer ended up rather complex.
48+
* To accommodate these use cases, decomposer ended up rather complex.
4949
*
5050
* 1) These types are handled by adding SFINAE overloads to our comparison
5151
* operators, checking whether `T == U` are comparable with the given
@@ -163,7 +163,7 @@ namespace Catch {
163163
public:
164164
constexpr auto isBinaryExpression() const -> bool { return m_isBinaryExpression; }
165165
constexpr auto getResult() const -> bool { return m_result; }
166-
//! This function **has** to be overriden by the derived class.
166+
//! This function **has** to be overridden by the derived class.
167167
virtual void streamReconstructedExpression( std::ostream& os ) const;
168168

169169
constexpr ITransientExpression( bool isBinaryExpression, bool result )

src/catch2/internal/catch_run_context.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ namespace Catch {
361361
auto& currentTracker = m_trackerContext.currentTracker();
362362
assert(
363363
currentTracker.nameAndLocation() != nameAndLoc &&
364-
"Trying to create tracker for a genreator that already has one" );
364+
"Trying to create tracker for a generator that already has one" );
365365

366366
auto newTracker = Catch::Detail::make_unique<Generators::GeneratorTracker>(
367367
CATCH_MOVE(nameAndLoc), m_trackerContext, &currentTracker );

src/catch2/internal/catch_section.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ namespace Catch {
6262
#else
6363

6464
// These section definitions imply that at most one section at one level
65-
// will be intered (because only one section's __LINE__ can be equal to
65+
// will be entered (because only one section's __LINE__ can be equal to
6666
// the dummy `catchInternalSectionHint` variable from `TEST_CASE`).
6767

6868
namespace Catch {

src/catch2/internal/catch_string_manip.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ namespace Catch {
7474
std::string origStr = CATCH_MOVE(str);
7575
str.clear();
7676
// There is at least one replacement, so reserve with the best guess
77-
// we can make without actually counting the number of occurences.
77+
// we can make without actually counting the number of occurrences.
7878
str.reserve(origStr.size() - replaceThis.size() + withThis.size());
7979
do {
8080
str.append(origStr, copyBegin, i-copyBegin );

tests/SelfTest/Baselines/automake.sw.approved.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ Nor would this
175175
:test-result: XFAIL Inequality checks that should fail
176176
:test-result: PASS Inequality checks that should succeed
177177
:test-result: PASS JsonWriter
178-
:test-result: PASS JsonWriter escapes charaters in strings properly
178+
:test-result: PASS JsonWriter escapes characters in strings properly
179179
:test-result: PASS Lambdas in assertions
180180
:test-result: PASS Less-than inequalities with different epsilons
181181
:test-result: PASS ManuallyRegistered

tests/SelfTest/Baselines/automake.sw.multi.approved.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
:test-result: XFAIL Inequality checks that should fail
174174
:test-result: PASS Inequality checks that should succeed
175175
:test-result: PASS JsonWriter
176-
:test-result: PASS JsonWriter escapes charaters in strings properly
176+
:test-result: PASS JsonWriter escapes characters in strings properly
177177
:test-result: PASS Lambdas in assertions
178178
:test-result: PASS Less-than inequalities with different epsilons
179179
:test-result: PASS ManuallyRegistered

tests/SelfTest/Baselines/console.sw.approved.txt

+9-9
Original file line numberDiff line numberDiff line change
@@ -7652,7 +7652,7 @@ with expansion:
76527652
""custom"" == ""custom""
76537653

76547654
-------------------------------------------------------------------------------
7655-
JsonWriter escapes charaters in strings properly
7655+
JsonWriter escapes characters in strings properly
76567656
Quote in a string is escaped
76577657
-------------------------------------------------------------------------------
76587658
Json.tests.cpp:<line number>
@@ -7664,7 +7664,7 @@ with expansion:
76647664
""\""" == ""\"""
76657665

76667666
-------------------------------------------------------------------------------
7667-
JsonWriter escapes charaters in strings properly
7667+
JsonWriter escapes characters in strings properly
76687668
Backslash in a string is escaped
76697669
-------------------------------------------------------------------------------
76707670
Json.tests.cpp:<line number>
@@ -7676,7 +7676,7 @@ with expansion:
76767676
""\\"" == ""\\""
76777677

76787678
-------------------------------------------------------------------------------
7679-
JsonWriter escapes charaters in strings properly
7679+
JsonWriter escapes characters in strings properly
76807680
Forward slash in a string is **not** escaped
76817681
-------------------------------------------------------------------------------
76827682
Json.tests.cpp:<line number>
@@ -7688,7 +7688,7 @@ with expansion:
76887688
""/"" == ""/""
76897689

76907690
-------------------------------------------------------------------------------
7691-
JsonWriter escapes charaters in strings properly
7691+
JsonWriter escapes characters in strings properly
76927692
Backspace in a string is escaped
76937693
-------------------------------------------------------------------------------
76947694
Json.tests.cpp:<line number>
@@ -7700,7 +7700,7 @@ with expansion:
77007700
""\b"" == ""\b""
77017701

77027702
-------------------------------------------------------------------------------
7703-
JsonWriter escapes charaters in strings properly
7703+
JsonWriter escapes characters in strings properly
77047704
Formfeed in a string is escaped
77057705
-------------------------------------------------------------------------------
77067706
Json.tests.cpp:<line number>
@@ -7712,7 +7712,7 @@ with expansion:
77127712
""\f"" == ""\f""
77137713

77147714
-------------------------------------------------------------------------------
7715-
JsonWriter escapes charaters in strings properly
7715+
JsonWriter escapes characters in strings properly
77167716
linefeed in a string is escaped
77177717
-------------------------------------------------------------------------------
77187718
Json.tests.cpp:<line number>
@@ -7724,7 +7724,7 @@ with expansion:
77247724
""\n"" == ""\n""
77257725

77267726
-------------------------------------------------------------------------------
7727-
JsonWriter escapes charaters in strings properly
7727+
JsonWriter escapes characters in strings properly
77287728
carriage return in a string is escaped
77297729
-------------------------------------------------------------------------------
77307730
Json.tests.cpp:<line number>
@@ -7736,7 +7736,7 @@ with expansion:
77367736
""\r"" == ""\r""
77377737

77387738
-------------------------------------------------------------------------------
7739-
JsonWriter escapes charaters in strings properly
7739+
JsonWriter escapes characters in strings properly
77407740
tab in a string is escaped
77417741
-------------------------------------------------------------------------------
77427742
Json.tests.cpp:<line number>
@@ -7748,7 +7748,7 @@ with expansion:
77487748
""\t"" == ""\t""
77497749

77507750
-------------------------------------------------------------------------------
7751-
JsonWriter escapes charaters in strings properly
7751+
JsonWriter escapes characters in strings properly
77527752
combination of characters is escaped
77537753
-------------------------------------------------------------------------------
77547754
Json.tests.cpp:<line number>

tests/SelfTest/Baselines/console.sw.multi.approved.txt

+9-9
Original file line numberDiff line numberDiff line change
@@ -7650,7 +7650,7 @@ with expansion:
76507650
""custom"" == ""custom""
76517651

76527652
-------------------------------------------------------------------------------
7653-
JsonWriter escapes charaters in strings properly
7653+
JsonWriter escapes characters in strings properly
76547654
Quote in a string is escaped
76557655
-------------------------------------------------------------------------------
76567656
Json.tests.cpp:<line number>
@@ -7662,7 +7662,7 @@ with expansion:
76627662
""\""" == ""\"""
76637663

76647664
-------------------------------------------------------------------------------
7665-
JsonWriter escapes charaters in strings properly
7665+
JsonWriter escapes characters in strings properly
76667666
Backslash in a string is escaped
76677667
-------------------------------------------------------------------------------
76687668
Json.tests.cpp:<line number>
@@ -7674,7 +7674,7 @@ with expansion:
76747674
""\\"" == ""\\""
76757675

76767676
-------------------------------------------------------------------------------
7677-
JsonWriter escapes charaters in strings properly
7677+
JsonWriter escapes characters in strings properly
76787678
Forward slash in a string is **not** escaped
76797679
-------------------------------------------------------------------------------
76807680
Json.tests.cpp:<line number>
@@ -7686,7 +7686,7 @@ with expansion:
76867686
""/"" == ""/""
76877687

76887688
-------------------------------------------------------------------------------
7689-
JsonWriter escapes charaters in strings properly
7689+
JsonWriter escapes characters in strings properly
76907690
Backspace in a string is escaped
76917691
-------------------------------------------------------------------------------
76927692
Json.tests.cpp:<line number>
@@ -7698,7 +7698,7 @@ with expansion:
76987698
""\b"" == ""\b""
76997699

77007700
-------------------------------------------------------------------------------
7701-
JsonWriter escapes charaters in strings properly
7701+
JsonWriter escapes characters in strings properly
77027702
Formfeed in a string is escaped
77037703
-------------------------------------------------------------------------------
77047704
Json.tests.cpp:<line number>
@@ -7710,7 +7710,7 @@ with expansion:
77107710
""\f"" == ""\f""
77117711

77127712
-------------------------------------------------------------------------------
7713-
JsonWriter escapes charaters in strings properly
7713+
JsonWriter escapes characters in strings properly
77147714
linefeed in a string is escaped
77157715
-------------------------------------------------------------------------------
77167716
Json.tests.cpp:<line number>
@@ -7722,7 +7722,7 @@ with expansion:
77227722
""\n"" == ""\n""
77237723

77247724
-------------------------------------------------------------------------------
7725-
JsonWriter escapes charaters in strings properly
7725+
JsonWriter escapes characters in strings properly
77267726
carriage return in a string is escaped
77277727
-------------------------------------------------------------------------------
77287728
Json.tests.cpp:<line number>
@@ -7734,7 +7734,7 @@ with expansion:
77347734
""\r"" == ""\r""
77357735

77367736
-------------------------------------------------------------------------------
7737-
JsonWriter escapes charaters in strings properly
7737+
JsonWriter escapes characters in strings properly
77387738
tab in a string is escaped
77397739
-------------------------------------------------------------------------------
77407740
Json.tests.cpp:<line number>
@@ -7746,7 +7746,7 @@ with expansion:
77467746
""\t"" == ""\t""
77477747

77487748
-------------------------------------------------------------------------------
7749-
JsonWriter escapes charaters in strings properly
7749+
JsonWriter escapes characters in strings properly
77507750
combination of characters is escaped
77517751
-------------------------------------------------------------------------------
77527752
Json.tests.cpp:<line number>

tests/SelfTest/Baselines/junit.sw.approved.txt

+10-10
Original file line numberDiff line numberDiff line change
@@ -929,16 +929,16 @@ at Condition.tests.cpp:<line number>
929929
<testcase classname="<exe-name>.global" name="JsonWriter/Moved from JsonObjectWriter shall not insert superfluous brace" time="{duration}" status="run"/>
930930
<testcase classname="<exe-name>.global" name="JsonWriter/Moved from JsonArrayWriter shall not insert superfluous bracket" time="{duration}" status="run"/>
931931
<testcase classname="<exe-name>.global" name="JsonWriter/Custom class shall be quoted" time="{duration}" status="run"/>
932-
<testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly" time="{duration}" status="run"/>
933-
<testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly/Quote in a string is escaped" time="{duration}" status="run"/>
934-
<testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly/Backslash in a string is escaped" time="{duration}" status="run"/>
935-
<testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly/Forward slash in a string is **not** escaped" time="{duration}" status="run"/>
936-
<testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly/Backspace in a string is escaped" time="{duration}" status="run"/>
937-
<testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly/Formfeed in a string is escaped" time="{duration}" status="run"/>
938-
<testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly/linefeed in a string is escaped" time="{duration}" status="run"/>
939-
<testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly/carriage return in a string is escaped" time="{duration}" status="run"/>
940-
<testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly/tab in a string is escaped" time="{duration}" status="run"/>
941-
<testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly/combination of characters is escaped" time="{duration}" status="run"/>
932+
<testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly" time="{duration}" status="run"/>
933+
<testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly/Quote in a string is escaped" time="{duration}" status="run"/>
934+
<testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly/Backslash in a string is escaped" time="{duration}" status="run"/>
935+
<testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly/Forward slash in a string is **not** escaped" time="{duration}" status="run"/>
936+
<testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly/Backspace in a string is escaped" time="{duration}" status="run"/>
937+
<testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly/Formfeed in a string is escaped" time="{duration}" status="run"/>
938+
<testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly/linefeed in a string is escaped" time="{duration}" status="run"/>
939+
<testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly/carriage return in a string is escaped" time="{duration}" status="run"/>
940+
<testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly/tab in a string is escaped" time="{duration}" status="run"/>
941+
<testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly/combination of characters is escaped" time="{duration}" status="run"/>
942942
<testcase classname="<exe-name>.global" name="Lambdas in assertions" time="{duration}" status="run"/>
943943
<testcase classname="<exe-name>.global" name="Less-than inequalities with different epsilons" time="{duration}" status="run"/>
944944
<testcase classname="<exe-name>.global" name="ManuallyRegistered" time="{duration}" status="run"/>

0 commit comments

Comments
 (0)