diff --git a/docs/assertions.md b/docs/assertions.md index ece4e106..509abf8a 100644 --- a/docs/assertions.md +++ b/docs/assertions.md @@ -9,7 +9,7 @@ Most test frameworks have a large collection of assertion macros to capture all possible conditional forms (```_EQUALS```, ```_NOTEQUALS```, ```_GREATER_THAN``` etc). -Catch is different. Because it decomposes natural C-style conditional expressions most of these forms are reduced to one or two that you will use all the time. That said there are a rich set of auxilliary macros as well. We'll describe all of these here. +Catch is different. Because it decomposes natural C-style conditional expressions most of these forms are reduced to one or two that you will use all the time. That said there are a rich set of auxiliary macros as well. We'll describe all of these here. Most of these macros come in two forms: diff --git a/docs/command-line.md b/docs/command-line.md index 0c24c3b1..78d83625 100644 --- a/docs/command-line.md +++ b/docs/command-line.md @@ -78,7 +78,7 @@ Wildcards consist of the `*` character at the beginning and/or end of test case Test specs are case insensitive. -If a spec is prefixed with `exclude:` or the `~` character then the pattern matches an exclusion. This means that tests matching the pattern are excluded from the set - even if a prior inclusion spec included them. Subsequent inclusion specs will take precendence, however. +If a spec is prefixed with `exclude:` or the `~` character then the pattern matches an exclusion. This means that tests matching the pattern are excluded from the set - even if a prior inclusion spec included them. Subsequent inclusion specs will take precedence, however. Inclusions and exclusions are evaluated in left-to-right order. Test case examples: @@ -94,7 +94,7 @@ a* ~ab* abc Matches all tests that start with 'a', except those that Names within square brackets are interpreted as tags. -A series of tags form an AND expression wheras a comma-separated sequence forms an OR expression. e.g.: +A series of tags form an AND expression whereas a comma-separated sequence forms an OR expression. e.g.:
[one][two],[three]
This matches all tests tagged `[one]` and `[two]`, as well as all tests tagged `[three]` @@ -269,7 +269,7 @@ either before running any tests, after running all tests - or both, depending on When running benchmarks the clock resolution is estimated. Benchmarks are then run for exponentially increasing numbers of iterations until some multiple of the estimated resolution is exceed. By default that multiple is 100, but -it can be overriden here. +it can be overridden here. ## Usage diff --git a/docs/configuration.md b/docs/configuration.md index c2fcc55e..098496d6 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -26,7 +26,7 @@ Although Catch is header only it still, internally, maintains a distinction betw # Reporter / Listener interfaces - CATCH_CONFIG_EXTERNAL_INTERFACES // Brings in neccessary headers for Reporter/Listener implementation + CATCH_CONFIG_EXTERNAL_INTERFACES // Brings in necessary headers for Reporter/Listener implementation Brings in various parts of Catch that are required for user defined Reporters and Listeners. This means that new Reporters and Listeners can be defined in this file as well as in the main file. @@ -79,7 +79,7 @@ This can be useful on certain platforms that do not provide the standard iostrea By default Catch's stringification machinery falls back to a "{?}". To let projects reuse their own existing stringification machinery, this -fallback can be overriden by defining `CATCH_CONFIG_FALLBACK_STRINGIFIER` +fallback can be overridden by defining `CATCH_CONFIG_FALLBACK_STRINGIFIER` to a name of a function that should perform the stringification instead. The provided function must return std::string and must accept any type diff --git a/docs/event-listeners.md b/docs/event-listeners.md index 1ddef0f8..c6625a2e 100644 --- a/docs/event-listeners.md +++ b/docs/event-listeners.md @@ -44,7 +44,7 @@ _Note that you should not use any assertion macros within a Listener!_ ## Events that can be hooked -The following are the methods that can be overriden in the Listener: +The following are the methods that can be overridden in the Listener: ```c++ // The whole test run, starting and ending diff --git a/docs/opensource-users.md b/docs/opensource-users.md index fb46875a..374cb1d2 100644 --- a/docs/opensource-users.md +++ b/docs/opensource-users.md @@ -21,7 +21,7 @@ Listing a project here does not imply endorsement and the plan is to keep these Boost Asio style bindings for ZeroMQ ### [ChakraCore](https://github.com/Microsoft/ChakraCore) -The core part of the Chakra Javascript engine that powers Microsoft Edge +The core part of the Chakra JavaScript engine that powers Microsoft Edge ### [ChaiScript](https://github.com/ChaiScript/ChaiScript) A, header-only, embedded scripting language designed from the ground up to directly target C++ and take advantage of modern C++ development techniques diff --git a/docs/own-main.md b/docs/own-main.md index 18d1b7d3..c74f9f14 100644 --- a/docs/own-main.md +++ b/docs/own-main.md @@ -30,7 +30,7 @@ int main( int argc, char* argv[] ) { ## Amending the config -If you still want Catch to process the command line, but you want to programatically tweak the config, you can do so in one of two ways: +If you still want Catch to process the command line, but you want to programmatically tweak the config, you can do so in one of two ways: ```c++ #define CATCH_CONFIG_RUNNER diff --git a/docs/release-notes.md b/docs/release-notes.md index 76d88be7..dc9f435c 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -379,8 +379,8 @@ Cygwin issue with `gettimeofday` - `#define` was not early enough * Cygwin compatibility fixes * Signal handling is no longer compiled by default. * Usage of `gettimeofday` inside Catch should no longer cause compilation errors. -* Improved `-Wparentheses` supression for gcc (#674) - * When compiled with gcc 4.8 or newer, the supression is localized to assertions only +* Improved `-Wparentheses` suppression for gcc (#674) + * When compiled with gcc 4.8 or newer, the suppression is localized to assertions only * Otherwise it is supressed for the whole TU * Fixed test spec parser issue (with escapes in multiple names) @@ -399,7 +399,7 @@ Xml: * C-escape control characters instead of XML encoding them (which requires XML 1.1) * Revert XML output to XML 1.0 * Can provide stylesheet references by extending the XML reporter -* Added description and tags attribites to XML Reporter +* Added description and tags attributes to XML Reporter * Tags are closed and the stream flushed more eagerly to avoid stdout interpolation diff --git a/docs/release-process.md b/docs/release-process.md index 433777b1..9990bab2 100644 --- a/docs/release-process.md +++ b/docs/release-process.md @@ -1,11 +1,11 @@ # How to release -When enough changes have accumulated, it is time to release new version of Catch. This document describes the proces in doing so, that no steps are forgotten. Note that all referenced scripts can be found in the `scripts/` directory. +When enough changes have accumulated, it is time to release new version of Catch. This document describes the process in doing so, that no steps are forgotten. Note that all referenced scripts can be found in the `scripts/` directory. -## Neccessary steps +## Necessary steps -These steps are neccessary and have to be performed before each new release. They serve to make sure that the new release is correct and linked-to from the standard places. +These steps are necessary and have to be performed before each new release. They serve to make sure that the new release is correct and linked-to from the standard places. ### Approval testing @@ -54,7 +54,7 @@ The following steps are optional, and do not have to be performed when releasing ### vcpkg update -Catch is maintaining its own port in Microsoft's package manager [vcpkg](https://github.com/Microsoft/vcpkg). This means that when new version of Catch is released, it should be posted there as well. `updateVcpkgPackage.py` can do a lot of neccessary work for you, it creates a branch and commits neccessary changes. You should review these changes, push and open a PR against vcpkg's upstream. +Catch is maintaining its own port in Microsoft's package manager [vcpkg](https://github.com/Microsoft/vcpkg). This means that when new version of Catch is released, it should be posted there as well. `updateVcpkgPackage.py` can do a lot of necessary work for you, it creates a branch and commits necessary changes. You should review these changes, push and open a PR against vcpkg's upstream. Note that the script assumes you have your fork of vcpkg checked out in a directory next to the directory where you have checked out Catch, like so: ``` diff --git a/include/internal/catch_capture_matchers.cpp b/include/internal/catch_capture_matchers.cpp index 7ef1597d..a67cc797 100644 --- a/include/internal/catch_capture_matchers.cpp +++ b/include/internal/catch_capture_matchers.cpp @@ -13,7 +13,7 @@ namespace Catch { using StringMatcher = Matchers::Impl::MatcherBase; // This is the general overload that takes a any string matcher - // There is another overload, in catch_assertinhandler.h/.cpp, that only takes a string and infers + // There is another overload, in catch_assertionhandler.h/.cpp, that only takes a string and infers // the Equals matcher (so the header does not mention matchers) void handleExceptionMatchExpr( AssertionHandler& handler, StringMatcher const& matcher, StringRef matcherString ) { std::string exceptionMessage = Catch::translateActiveException(); diff --git a/include/internal/catch_session.cpp b/include/internal/catch_session.cpp index 58df6276..c6cde603 100644 --- a/include/internal/catch_session.cpp +++ b/include/internal/catch_session.cpp @@ -133,7 +133,7 @@ namespace Catch { if ( !exceptions.empty() ) { m_startupExceptions = true; Colour colourGuard( Colour::Red ); - Catch::cerr() << "Errors occured during startup!" << '\n'; + Catch::cerr() << "Errors occurred during startup!" << '\n'; // iterate over all exceptions and notify user for ( const auto& ex_ptr : exceptions ) { try { diff --git a/include/reporters/catch_reporter_tap.hpp b/include/reporters/catch_reporter_tap.hpp index edb75b5a..19e54ed1 100644 --- a/include/reporters/catch_reporter_tap.hpp +++ b/include/reporters/catch_reporter_tap.hpp @@ -26,7 +26,7 @@ namespace Catch { ~TAPReporter() override; static std::string getDescription() { - return "Reports test results in TAP format, suitable for test harneses"; + return "Reports test results in TAP format, suitable for test harnesses"; } ReporterPreferences getPreferences() const override { diff --git a/misc/installOpenCppCoverage.ps1 b/misc/installOpenCppCoverage.ps1 index b0e00306..d277a55d 100644 --- a/misc/installOpenCppCoverage.ps1 +++ b/misc/installOpenCppCoverage.ps1 @@ -1,4 +1,4 @@ -# Downloads are done from the oficial github release page links +# Downloads are done from the official github release page links $downloadUrl = "https://github.com/OpenCppCoverage/OpenCppCoverage/releases/download/release-0.9.7.0/OpenCppCoverageSetup-x64-0.9.7.0.exe" $installerPath = [System.IO.Path]::Combine($Env:USERPROFILE, "Downloads", "OpenCppCoverageSetup.exe") diff --git a/projects/SelfTest/Baselines/automake.std.approved.txt b/projects/SelfTest/Baselines/automake.std.approved.txt index 85299f70..057be069 100644 --- a/projects/SelfTest/Baselines/automake.std.approved.txt +++ b/projects/SelfTest/Baselines/automake.std.approved.txt @@ -53,7 +53,7 @@ :test-result: PASS Inequality checks that should succeed :test-result: PASS Less-than inequalities with different epsilons :test-result: PASS Long strings can be wrapped -:test-result: PASS Long text is truncted +:test-result: PASS Long text is truncated :test-result: PASS ManuallyRegistered :test-result: PASS Matchers can be (AllOf) composed with the && operator :test-result: PASS Matchers can be (AnyOf) composed with the || operator diff --git a/projects/SelfTest/UsageTests/Exception.tests.cpp b/projects/SelfTest/UsageTests/Exception.tests.cpp index 3cc44d98..f9c73ed5 100644 --- a/projects/SelfTest/UsageTests/Exception.tests.cpp +++ b/projects/SelfTest/UsageTests/Exception.tests.cpp @@ -12,7 +12,7 @@ #include #ifdef _MSC_VER -#pragma warning(disable:4702) // Unreachable code -- uncoditional throws and so on +#pragma warning(disable:4702) // Unreachable code -- unconditional throws and so on #endif #ifdef __clang__ #pragma clang diagnostic push diff --git a/projects/SelfTest/UsageTests/ToStringVector.tests.cpp b/projects/SelfTest/UsageTests/ToStringVector.tests.cpp index 18e56c08..63b49e50 100644 --- a/projects/SelfTest/UsageTests/ToStringVector.tests.cpp +++ b/projects/SelfTest/UsageTests/ToStringVector.tests.cpp @@ -2,7 +2,7 @@ #include #include -// vedctor +// vector TEST_CASE( "vector -> toString", "[toString][vector]" ) { std::vector vv; diff --git a/projects/XCode/OCTest/OCTest/OCTest.1 b/projects/XCode/OCTest/OCTest/OCTest.1 index 38afeb5f..1cd333e2 100644 --- a/projects/XCode/OCTest/OCTest/OCTest.1 +++ b/projects/XCode/OCTest/OCTest/OCTest.1 @@ -61,9 +61,9 @@ FILE_2 description .\" .Sh DIAGNOSTICS \" May not be needed .\" .Bl -diag .\" .It Diagnostic Tag -.\" Diagnostic informtion here. +.\" Diagnostic information here. .\" .It Diagnostic Tag -.\" Diagnostic informtion here. +.\" Diagnostic information here. .\" .El .Sh SEE ALSO .\" List links in ascending order by section, alphabetically within a section. diff --git a/scripts/updateDocumentToC.py b/scripts/updateDocumentToC.py index 948e5e1d..e706c5c3 100644 --- a/scripts/updateDocumentToC.py +++ b/scripts/updateDocumentToC.py @@ -127,7 +127,7 @@ def tagAndCollect(lines, id_tag=True, back_links=False, exclude_h=None): A list of 3-value sublists, where the first value represents the heading, the second value the string that was inserted assigned to the IDs in the anchor tags, - and the third value is an integer that reprents the headline level. + and the third value is an integer that represents the headline level. E.g., [['some header lvl3', 'some-header-lvl3', 3], ...] @@ -282,7 +282,7 @@ def markdownToclify( input_file: str Path to the markdown input file. - output_file: str (defaul: None) + output_file: str (default: None) Path to the markdown output file. min_toc_len: int (default: 2) @@ -420,7 +420,7 @@ def updateDocumentToCMain(): default=minTocEntries, type=int, metavar='N', - help='the minimum number of entries to create a table of contents for [{deflt}]'.format(deflt=minTocEntries)) + help='the minimum number of entries to create a table of contents for [{default}]'.format(default=minTocEntries)) parser.add_argument( '--remove-toc', diff --git a/scripts/updateVcpkgPackage.py b/scripts/updateVcpkgPackage.py index 43321e15..fd7b759a 100644 --- a/scripts/updateVcpkgPackage.py +++ b/scripts/updateVcpkgPackage.py @@ -89,7 +89,7 @@ def git_push(path_to_repo): # Make sure we branch off master subprocess.call('git checkout master', shell=True) - # Update repo to current master, so we don't work off old version of the portsfile + # Update repo to current master, so we don't work off old version of the portfile subprocess.call('git pull Microsoft master', shell=True) subprocess.call('git push', shell=True)