mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 12:17:11 +01:00 
			
		
		
		
	Fix typos
This commit is contained in:
		| @@ -68,7 +68,7 @@ expand_template( | ||||
| cc_library( | ||||
|     name = "catch2_generated", | ||||
|     hdrs = ["catch2/catch_user_config.hpp"], | ||||
|     include_prefix = ".",  # to manipulate -I of dependenices | ||||
|     include_prefix = ".",  # to manipulate -I of dependencies | ||||
|     visibility = ["//visibility:public"], | ||||
| ) | ||||
|  | ||||
|   | ||||
| @@ -123,7 +123,7 @@ specs. You can: | ||||
|     This allows test cases that are tagged with **either** "[some-tag]" **or** | ||||
|     "[other-tag]". A test case with both will obviously also pass the filter. | ||||
|  | ||||
|     Note that commas take precendence over simple concatenation. This means | ||||
|     Note that commas take precedence over simple concatenation. This means | ||||
|     that `[a][b],[c]` accepts tests that are tagged with either both "[a]" and | ||||
|     "[b]", or tests that are tagged with just "[c]". | ||||
|  | ||||
|   | ||||
| @@ -219,8 +219,8 @@ For floating point generators, the situation is much more complex. | ||||
| Generally Catch2 only promises reproducibility (or even just correctness!) | ||||
| on platforms that obey the IEEE-754 standard. Furthermore, reproducibility | ||||
| only applies between binaries that perform floating point math in the | ||||
| same way, e.g. if you compile a binary targetting the x87 FPU and another | ||||
| one targetting SSE2 for floating point math, their results will vary. | ||||
| same way, e.g. if you compile a binary targeting the x87 FPU and another | ||||
| one targeting SSE2 for floating point math, their results will vary. | ||||
| Similarly, binaries compiled with compiler flags that relax the IEEE-754 | ||||
| adherence, e.g. `-ffast-math`, might provide different results than those | ||||
| compiled for strict IEEE-754 adherence. | ||||
|   | ||||
| @@ -93,7 +93,7 @@ | ||||
|   * Removed redundant `CTEST_FILE` param when creating the indirection file for `PRE_TEST` discovery mode (#2936) | ||||
|   * Rewrote the test discovery logic to use output from the JSON reporter | ||||
|     * This means that `catch_discover_tests` now requires CMake 3.19 or newer | ||||
|   * Added `ADD_TAGS_AS_LABELS` option. If specified, each CTest test will be labeled with corrensponding Catch2's test tag | ||||
|   * Added `ADD_TAGS_AS_LABELS` option. If specified, each CTest test will be labeled with corresponding Catch2's test tag | ||||
| * Bumped up the minimum required CMake version to build Catch2 to 3.16 | ||||
| * Meson build now provides option to avoid installing Catch2 | ||||
| * Bazel build is moved to Bzlmod. | ||||
| @@ -175,7 +175,7 @@ | ||||
| ### Improvements | ||||
| * Reintroduced support for GCC 5 and 6 (#2836) | ||||
|   * As with VS2017, if they start causing trouble again, they will be dropped again. | ||||
| * Added workaround for targetting newest MacOS (Sonoma) using GCC (#2837, #2839) | ||||
| * Added workaround for targeting newest MacOS (Sonoma) using GCC (#2837, #2839) | ||||
| * `CATCH_CONFIG_DEFAULT_REPORTER` can now be an arbitrary reporter spec | ||||
|   * Previously it could only be a plain reporter name, so it was impossible to compile in custom arguments to the reporter. | ||||
| * Improved performance of generating 64bit random integers by 20+% | ||||
|   | ||||
| @@ -130,7 +130,7 @@ TEST_CASE_PERSISTENT_FIXTURE( MyFixture, "Tests with MyFixture" ) { | ||||
| } | ||||
| ``` | ||||
|  | ||||
| This example demonstates two possible use-cases of this fixture type: | ||||
| This example demonstrates two possible use-cases of this fixture type: | ||||
| 1. Improve test run times by reducing the amount of expensive and  | ||||
| redundant setup and tear-down required. | ||||
| 2. Reusing results from the previous partial run, in the current | ||||
|   | ||||
| @@ -45,7 +45,7 @@ | ||||
|  *    when the compiler handles `ExprLhs<T> == b`, it also tries to resolve | ||||
|  *    the overload set for `b == ExprLhs<T>`. | ||||
|  * | ||||
|  * To accomodate these use cases, decomposer ended up rather complex. | ||||
|  * To accommodate these use cases, decomposer ended up rather complex. | ||||
|  * | ||||
|  * 1) These types are handled by adding SFINAE overloads to our comparison | ||||
|  *    operators, checking whether `T == U` are comparable with the given | ||||
| @@ -163,7 +163,7 @@ namespace Catch { | ||||
|     public: | ||||
|         constexpr auto isBinaryExpression() const -> bool { return m_isBinaryExpression; } | ||||
|         constexpr auto getResult() const -> bool { return m_result; } | ||||
|         //! This function **has** to be overriden by the derived class. | ||||
|         //! This function **has** to be overridden by the derived class. | ||||
|         virtual void streamReconstructedExpression( std::ostream& os ) const; | ||||
|  | ||||
|         constexpr ITransientExpression( bool isBinaryExpression, bool result ) | ||||
|   | ||||
| @@ -361,7 +361,7 @@ namespace Catch { | ||||
|         auto& currentTracker = m_trackerContext.currentTracker(); | ||||
|         assert( | ||||
|             currentTracker.nameAndLocation() != nameAndLoc && | ||||
|             "Trying to create tracker for a genreator that already has one" ); | ||||
|             "Trying to create tracker for a generator that already has one" ); | ||||
|  | ||||
|         auto newTracker = Catch::Detail::make_unique<Generators::GeneratorTracker>( | ||||
|             CATCH_MOVE(nameAndLoc), m_trackerContext, ¤tTracker ); | ||||
|   | ||||
| @@ -62,7 +62,7 @@ namespace Catch { | ||||
| #else | ||||
|  | ||||
| // These section definitions imply that at most one section at one level | ||||
| // will be intered (because only one section's __LINE__ can be equal to | ||||
| // will be entered (because only one section's __LINE__ can be equal to | ||||
| // the dummy `catchInternalSectionHint` variable from `TEST_CASE`). | ||||
|  | ||||
| namespace Catch { | ||||
|   | ||||
| @@ -74,7 +74,7 @@ namespace Catch { | ||||
|         std::string origStr = CATCH_MOVE(str); | ||||
|         str.clear(); | ||||
|         // There is at least one replacement, so reserve with the best guess | ||||
|         // we can make without actually counting the number of occurences. | ||||
|         // we can make without actually counting the number of occurrences. | ||||
|         str.reserve(origStr.size() - replaceThis.size() + withThis.size()); | ||||
|         do { | ||||
|             str.append(origStr, copyBegin, i-copyBegin ); | ||||
|   | ||||
| @@ -175,7 +175,7 @@ Nor would this | ||||
| :test-result: XFAIL Inequality checks that should fail | ||||
| :test-result: PASS Inequality checks that should succeed | ||||
| :test-result: PASS JsonWriter | ||||
| :test-result: PASS JsonWriter escapes charaters in strings properly | ||||
| :test-result: PASS JsonWriter escapes characters in strings properly | ||||
| :test-result: PASS Lambdas in assertions | ||||
| :test-result: PASS Less-than inequalities with different epsilons | ||||
| :test-result: PASS ManuallyRegistered | ||||
|   | ||||
| @@ -173,7 +173,7 @@ | ||||
| :test-result: XFAIL Inequality checks that should fail | ||||
| :test-result: PASS Inequality checks that should succeed | ||||
| :test-result: PASS JsonWriter | ||||
| :test-result: PASS JsonWriter escapes charaters in strings properly | ||||
| :test-result: PASS JsonWriter escapes characters in strings properly | ||||
| :test-result: PASS Lambdas in assertions | ||||
| :test-result: PASS Less-than inequalities with different epsilons | ||||
| :test-result: PASS ManuallyRegistered | ||||
|   | ||||
| @@ -7652,7 +7652,7 @@ with expansion: | ||||
|   ""custom"" == ""custom"" | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| JsonWriter escapes charaters in strings properly | ||||
| JsonWriter escapes characters in strings properly | ||||
|   Quote in a string is escaped | ||||
| ------------------------------------------------------------------------------- | ||||
| Json.tests.cpp:<line number> | ||||
| @@ -7664,7 +7664,7 @@ with expansion: | ||||
|   ""\""" == ""\""" | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| JsonWriter escapes charaters in strings properly | ||||
| JsonWriter escapes characters in strings properly | ||||
|   Backslash in a string is escaped | ||||
| ------------------------------------------------------------------------------- | ||||
| Json.tests.cpp:<line number> | ||||
| @@ -7676,7 +7676,7 @@ with expansion: | ||||
|   ""\\"" == ""\\"" | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| JsonWriter escapes charaters in strings properly | ||||
| JsonWriter escapes characters in strings properly | ||||
|   Forward slash in a string is **not** escaped | ||||
| ------------------------------------------------------------------------------- | ||||
| Json.tests.cpp:<line number> | ||||
| @@ -7688,7 +7688,7 @@ with expansion: | ||||
|   ""/"" == ""/"" | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| JsonWriter escapes charaters in strings properly | ||||
| JsonWriter escapes characters in strings properly | ||||
|   Backspace in a string is escaped | ||||
| ------------------------------------------------------------------------------- | ||||
| Json.tests.cpp:<line number> | ||||
| @@ -7700,7 +7700,7 @@ with expansion: | ||||
|   ""\b"" == ""\b"" | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| JsonWriter escapes charaters in strings properly | ||||
| JsonWriter escapes characters in strings properly | ||||
|   Formfeed in a string is escaped | ||||
| ------------------------------------------------------------------------------- | ||||
| Json.tests.cpp:<line number> | ||||
| @@ -7712,7 +7712,7 @@ with expansion: | ||||
|   ""\f"" == ""\f"" | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| JsonWriter escapes charaters in strings properly | ||||
| JsonWriter escapes characters in strings properly | ||||
|   linefeed in a string is escaped | ||||
| ------------------------------------------------------------------------------- | ||||
| Json.tests.cpp:<line number> | ||||
| @@ -7724,7 +7724,7 @@ with expansion: | ||||
|   ""\n"" == ""\n"" | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| JsonWriter escapes charaters in strings properly | ||||
| JsonWriter escapes characters in strings properly | ||||
|   carriage return in a string is escaped | ||||
| ------------------------------------------------------------------------------- | ||||
| Json.tests.cpp:<line number> | ||||
| @@ -7736,7 +7736,7 @@ with expansion: | ||||
|   ""\r"" == ""\r"" | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| JsonWriter escapes charaters in strings properly | ||||
| JsonWriter escapes characters in strings properly | ||||
|   tab in a string is escaped | ||||
| ------------------------------------------------------------------------------- | ||||
| Json.tests.cpp:<line number> | ||||
| @@ -7748,7 +7748,7 @@ with expansion: | ||||
|   ""\t"" == ""\t"" | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| JsonWriter escapes charaters in strings properly | ||||
| JsonWriter escapes characters in strings properly | ||||
|   combination of characters is escaped | ||||
| ------------------------------------------------------------------------------- | ||||
| Json.tests.cpp:<line number> | ||||
|   | ||||
| @@ -7650,7 +7650,7 @@ with expansion: | ||||
|   ""custom"" == ""custom"" | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| JsonWriter escapes charaters in strings properly | ||||
| JsonWriter escapes characters in strings properly | ||||
|   Quote in a string is escaped | ||||
| ------------------------------------------------------------------------------- | ||||
| Json.tests.cpp:<line number> | ||||
| @@ -7662,7 +7662,7 @@ with expansion: | ||||
|   ""\""" == ""\""" | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| JsonWriter escapes charaters in strings properly | ||||
| JsonWriter escapes characters in strings properly | ||||
|   Backslash in a string is escaped | ||||
| ------------------------------------------------------------------------------- | ||||
| Json.tests.cpp:<line number> | ||||
| @@ -7674,7 +7674,7 @@ with expansion: | ||||
|   ""\\"" == ""\\"" | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| JsonWriter escapes charaters in strings properly | ||||
| JsonWriter escapes characters in strings properly | ||||
|   Forward slash in a string is **not** escaped | ||||
| ------------------------------------------------------------------------------- | ||||
| Json.tests.cpp:<line number> | ||||
| @@ -7686,7 +7686,7 @@ with expansion: | ||||
|   ""/"" == ""/"" | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| JsonWriter escapes charaters in strings properly | ||||
| JsonWriter escapes characters in strings properly | ||||
|   Backspace in a string is escaped | ||||
| ------------------------------------------------------------------------------- | ||||
| Json.tests.cpp:<line number> | ||||
| @@ -7698,7 +7698,7 @@ with expansion: | ||||
|   ""\b"" == ""\b"" | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| JsonWriter escapes charaters in strings properly | ||||
| JsonWriter escapes characters in strings properly | ||||
|   Formfeed in a string is escaped | ||||
| ------------------------------------------------------------------------------- | ||||
| Json.tests.cpp:<line number> | ||||
| @@ -7710,7 +7710,7 @@ with expansion: | ||||
|   ""\f"" == ""\f"" | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| JsonWriter escapes charaters in strings properly | ||||
| JsonWriter escapes characters in strings properly | ||||
|   linefeed in a string is escaped | ||||
| ------------------------------------------------------------------------------- | ||||
| Json.tests.cpp:<line number> | ||||
| @@ -7722,7 +7722,7 @@ with expansion: | ||||
|   ""\n"" == ""\n"" | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| JsonWriter escapes charaters in strings properly | ||||
| JsonWriter escapes characters in strings properly | ||||
|   carriage return in a string is escaped | ||||
| ------------------------------------------------------------------------------- | ||||
| Json.tests.cpp:<line number> | ||||
| @@ -7734,7 +7734,7 @@ with expansion: | ||||
|   ""\r"" == ""\r"" | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| JsonWriter escapes charaters in strings properly | ||||
| JsonWriter escapes characters in strings properly | ||||
|   tab in a string is escaped | ||||
| ------------------------------------------------------------------------------- | ||||
| Json.tests.cpp:<line number> | ||||
| @@ -7746,7 +7746,7 @@ with expansion: | ||||
|   ""\t"" == ""\t"" | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| JsonWriter escapes charaters in strings properly | ||||
| JsonWriter escapes characters in strings properly | ||||
|   combination of characters is escaped | ||||
| ------------------------------------------------------------------------------- | ||||
| Json.tests.cpp:<line number> | ||||
|   | ||||
| @@ -929,16 +929,16 @@ at Condition.tests.cpp:<line number> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter/Moved from JsonObjectWriter shall not insert superfluous brace" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter/Moved from JsonArrayWriter shall not insert superfluous bracket" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter/Custom class shall be quoted" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly/Quote in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly/Backslash in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly/Forward slash in a string is **not** escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly/Backspace in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly/Formfeed in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly/linefeed in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly/carriage return in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly/tab in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly/combination of characters is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly/Quote in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly/Backslash in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly/Forward slash in a string is **not** escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly/Backspace in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly/Formfeed in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly/linefeed in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly/carriage return in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly/tab in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly/combination of characters is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Lambdas in assertions" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Less-than inequalities with different epsilons" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="ManuallyRegistered" time="{duration}" status="run"/> | ||||
|   | ||||
| @@ -928,16 +928,16 @@ at Condition.tests.cpp:<line number> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter/Moved from JsonObjectWriter shall not insert superfluous brace" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter/Moved from JsonArrayWriter shall not insert superfluous bracket" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter/Custom class shall be quoted" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly/Quote in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly/Backslash in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly/Forward slash in a string is **not** escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly/Backspace in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly/Formfeed in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly/linefeed in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly/carriage return in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly/tab in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes charaters in strings properly/combination of characters is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly/Quote in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly/Backslash in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly/Forward slash in a string is **not** escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly/Backspace in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly/Formfeed in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly/linefeed in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly/carriage return in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly/tab in a string is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="JsonWriter escapes characters in strings properly/combination of characters is escaped" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Lambdas in assertions" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Less-than inequalities with different epsilons" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="ManuallyRegistered" time="{duration}" status="run"/> | ||||
|   | ||||
| @@ -173,16 +173,16 @@ at AssertionHandler.tests.cpp:<line number> | ||||
|     <testCase name="JsonWriter/Moved from JsonObjectWriter shall not insert superfluous brace" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter/Moved from JsonArrayWriter shall not insert superfluous bracket" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter/Custom class shall be quoted" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes charaters in strings properly" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes charaters in strings properly/Quote in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes charaters in strings properly/Backslash in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes charaters in strings properly/Forward slash in a string is **not** escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes charaters in strings properly/Backspace in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes charaters in strings properly/Formfeed in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes charaters in strings properly/linefeed in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes charaters in strings properly/carriage return in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes charaters in strings properly/tab in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes charaters in strings properly/combination of characters is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes characters in strings properly" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes characters in strings properly/Quote in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes characters in strings properly/Backslash in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes characters in strings properly/Forward slash in a string is **not** escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes characters in strings properly/Backspace in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes characters in strings properly/Formfeed in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes characters in strings properly/linefeed in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes characters in strings properly/carriage return in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes characters in strings properly/tab in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes characters in strings properly/combination of characters is escaped" duration="{duration}"/> | ||||
|   </file> | ||||
|   <file path="tests/<exe-name>/IntrospectiveTests/Parse.tests.cpp"> | ||||
|     <testCase name="Parse uints" duration="{duration}"/> | ||||
|   | ||||
| @@ -172,16 +172,16 @@ at AssertionHandler.tests.cpp:<line number> | ||||
|     <testCase name="JsonWriter/Moved from JsonObjectWriter shall not insert superfluous brace" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter/Moved from JsonArrayWriter shall not insert superfluous bracket" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter/Custom class shall be quoted" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes charaters in strings properly" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes charaters in strings properly/Quote in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes charaters in strings properly/Backslash in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes charaters in strings properly/Forward slash in a string is **not** escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes charaters in strings properly/Backspace in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes charaters in strings properly/Formfeed in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes charaters in strings properly/linefeed in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes charaters in strings properly/carriage return in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes charaters in strings properly/tab in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes charaters in strings properly/combination of characters is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes characters in strings properly" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes characters in strings properly/Quote in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes characters in strings properly/Backslash in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes characters in strings properly/Forward slash in a string is **not** escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes characters in strings properly/Backspace in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes characters in strings properly/Formfeed in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes characters in strings properly/linefeed in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes characters in strings properly/carriage return in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes characters in strings properly/tab in a string is escaped" duration="{duration}"/> | ||||
|     <testCase name="JsonWriter escapes characters in strings properly/combination of characters is escaped" duration="{duration}"/> | ||||
|   </file> | ||||
|   <file path="tests/<exe-name>/IntrospectiveTests/Parse.tests.cpp"> | ||||
|     <testCase name="Parse uints" duration="{duration}"/> | ||||
|   | ||||
| @@ -1904,23 +1904,23 @@ ok {test-number} - stream.str() == "{\n}" for: "{ }" == "{ }" | ||||
| ok {test-number} - stream.str() == "[\n]" for: "[ ]" == "[ ]" | ||||
| # JsonWriter | ||||
| ok {test-number} - stream.str() == "\"custom\"" for: ""custom"" == ""custom"" | ||||
| # JsonWriter escapes charaters in strings properly | ||||
| # JsonWriter escapes characters in strings properly | ||||
| ok {test-number} - sstream.str() == "\"\\\"\"" for: ""\""" == ""\""" | ||||
| # JsonWriter escapes charaters in strings properly | ||||
| # JsonWriter escapes characters in strings properly | ||||
| ok {test-number} - sstream.str() == "\"\\\\\"" for: ""\\"" == ""\\"" | ||||
| # JsonWriter escapes charaters in strings properly | ||||
| # JsonWriter escapes characters in strings properly | ||||
| ok {test-number} - sstream.str() == "\"/\"" for: ""/"" == ""/"" | ||||
| # JsonWriter escapes charaters in strings properly | ||||
| # JsonWriter escapes characters in strings properly | ||||
| ok {test-number} - sstream.str() == "\"\\b\"" for: ""\b"" == ""\b"" | ||||
| # JsonWriter escapes charaters in strings properly | ||||
| # JsonWriter escapes characters in strings properly | ||||
| ok {test-number} - sstream.str() == "\"\\f\"" for: ""\f"" == ""\f"" | ||||
| # JsonWriter escapes charaters in strings properly | ||||
| # JsonWriter escapes characters in strings properly | ||||
| ok {test-number} - sstream.str() == "\"\\n\"" for: ""\n"" == ""\n"" | ||||
| # JsonWriter escapes charaters in strings properly | ||||
| # JsonWriter escapes characters in strings properly | ||||
| ok {test-number} - sstream.str() == "\"\\r\"" for: ""\r"" == ""\r"" | ||||
| # JsonWriter escapes charaters in strings properly | ||||
| # JsonWriter escapes characters in strings properly | ||||
| ok {test-number} - sstream.str() == "\"\\t\"" for: ""\t"" == ""\t"" | ||||
| # JsonWriter escapes charaters in strings properly | ||||
| # JsonWriter escapes characters in strings properly | ||||
| ok {test-number} - sstream.str() == "\"\\\\/\\t\\r\\n\"" for: ""\\/\t\r\n"" == ""\\/\t\r\n"" | ||||
| # Lambdas in assertions | ||||
| ok {test-number} - []() { return true; }() for: true | ||||
|   | ||||
| @@ -1902,23 +1902,23 @@ ok {test-number} - stream.str() == "{\n}" for: "{ }" == "{ }" | ||||
| ok {test-number} - stream.str() == "[\n]" for: "[ ]" == "[ ]" | ||||
| # JsonWriter | ||||
| ok {test-number} - stream.str() == "\"custom\"" for: ""custom"" == ""custom"" | ||||
| # JsonWriter escapes charaters in strings properly | ||||
| # JsonWriter escapes characters in strings properly | ||||
| ok {test-number} - sstream.str() == "\"\\\"\"" for: ""\""" == ""\""" | ||||
| # JsonWriter escapes charaters in strings properly | ||||
| # JsonWriter escapes characters in strings properly | ||||
| ok {test-number} - sstream.str() == "\"\\\\\"" for: ""\\"" == ""\\"" | ||||
| # JsonWriter escapes charaters in strings properly | ||||
| # JsonWriter escapes characters in strings properly | ||||
| ok {test-number} - sstream.str() == "\"/\"" for: ""/"" == ""/"" | ||||
| # JsonWriter escapes charaters in strings properly | ||||
| # JsonWriter escapes characters in strings properly | ||||
| ok {test-number} - sstream.str() == "\"\\b\"" for: ""\b"" == ""\b"" | ||||
| # JsonWriter escapes charaters in strings properly | ||||
| # JsonWriter escapes characters in strings properly | ||||
| ok {test-number} - sstream.str() == "\"\\f\"" for: ""\f"" == ""\f"" | ||||
| # JsonWriter escapes charaters in strings properly | ||||
| # JsonWriter escapes characters in strings properly | ||||
| ok {test-number} - sstream.str() == "\"\\n\"" for: ""\n"" == ""\n"" | ||||
| # JsonWriter escapes charaters in strings properly | ||||
| # JsonWriter escapes characters in strings properly | ||||
| ok {test-number} - sstream.str() == "\"\\r\"" for: ""\r"" == ""\r"" | ||||
| # JsonWriter escapes charaters in strings properly | ||||
| # JsonWriter escapes characters in strings properly | ||||
| ok {test-number} - sstream.str() == "\"\\t\"" for: ""\t"" == ""\t"" | ||||
| # JsonWriter escapes charaters in strings properly | ||||
| # JsonWriter escapes characters in strings properly | ||||
| ok {test-number} - sstream.str() == "\"\\\\/\\t\\r\\n\"" for: ""\\/\t\r\n"" == ""\\/\t\r\n"" | ||||
| # Lambdas in assertions | ||||
| ok {test-number} - []() { return true; }() for: true | ||||
|   | ||||
| @@ -431,8 +431,8 @@ | ||||
| ##teamcity[testFinished name='Inequality checks that should succeed' duration="{duration}"] | ||||
| ##teamcity[testStarted name='JsonWriter'] | ||||
| ##teamcity[testFinished name='JsonWriter' duration="{duration}"] | ||||
| ##teamcity[testStarted name='JsonWriter escapes charaters in strings properly'] | ||||
| ##teamcity[testFinished name='JsonWriter escapes charaters in strings properly' duration="{duration}"] | ||||
| ##teamcity[testStarted name='JsonWriter escapes characters in strings properly'] | ||||
| ##teamcity[testFinished name='JsonWriter escapes characters in strings properly' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Lambdas in assertions'] | ||||
| ##teamcity[testFinished name='Lambdas in assertions' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Less-than inequalities with different epsilons'] | ||||
|   | ||||
| @@ -431,8 +431,8 @@ | ||||
| ##teamcity[testFinished name='Inequality checks that should succeed' duration="{duration}"] | ||||
| ##teamcity[testStarted name='JsonWriter'] | ||||
| ##teamcity[testFinished name='JsonWriter' duration="{duration}"] | ||||
| ##teamcity[testStarted name='JsonWriter escapes charaters in strings properly'] | ||||
| ##teamcity[testFinished name='JsonWriter escapes charaters in strings properly' duration="{duration}"] | ||||
| ##teamcity[testStarted name='JsonWriter escapes characters in strings properly'] | ||||
| ##teamcity[testFinished name='JsonWriter escapes characters in strings properly' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Lambdas in assertions'] | ||||
| ##teamcity[testFinished name='Lambdas in assertions' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Less-than inequalities with different epsilons'] | ||||
|   | ||||
| @@ -9158,7 +9158,7 @@ Approx( 3.14150000000000018 ) | ||||
|     </Section> | ||||
|     <OverallResult success="true" skips="0"/> | ||||
|   </TestCase> | ||||
|   <TestCase name="JsonWriter escapes charaters in strings properly" tags="[JsonWriter]" filename="tests/<exe-name>/IntrospectiveTests/Json.tests.cpp" > | ||||
|   <TestCase name="JsonWriter escapes characters in strings properly" tags="[JsonWriter]" filename="tests/<exe-name>/IntrospectiveTests/Json.tests.cpp" > | ||||
|     <Section name="Quote in a string is escaped" filename="tests/<exe-name>/IntrospectiveTests/Json.tests.cpp" > | ||||
|       <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Json.tests.cpp" > | ||||
|         <Original> | ||||
|   | ||||
| @@ -9158,7 +9158,7 @@ Approx( 3.14150000000000018 ) | ||||
|     </Section> | ||||
|     <OverallResult success="true" skips="0"/> | ||||
|   </TestCase> | ||||
|   <TestCase name="JsonWriter escapes charaters in strings properly" tags="[JsonWriter]" filename="tests/<exe-name>/IntrospectiveTests/Json.tests.cpp" > | ||||
|   <TestCase name="JsonWriter escapes characters in strings properly" tags="[JsonWriter]" filename="tests/<exe-name>/IntrospectiveTests/Json.tests.cpp" > | ||||
|     <Section name="Quote in a string is escaped" filename="tests/<exe-name>/IntrospectiveTests/Json.tests.cpp" > | ||||
|       <Expression success="true" type="REQUIRE" filename="tests/<exe-name>/IntrospectiveTests/Json.tests.cpp" > | ||||
|         <Original> | ||||
|   | ||||
| @@ -22,7 +22,7 @@ namespace { | ||||
|                ExtendedMultResult<Int>{ upper_result, lower_result } ); | ||||
|     } | ||||
|  | ||||
|     // Simple (and slow) implmentation of extended multiplication for tests | ||||
|     // Simple (and slow) implementation of extended multiplication for tests | ||||
|     constexpr Catch::Detail::ExtendedMultResult<std::uint64_t> | ||||
|     extendedMultNaive( std::uint64_t lhs, std::uint64_t rhs ) { | ||||
|         // This is a simple long multiplication, where we split lhs and rhs | ||||
|   | ||||
| @@ -111,7 +111,7 @@ TEST_CASE( "JsonWriter", "[JSON][JsonWriter]" ) { | ||||
|     } | ||||
| } | ||||
|  | ||||
| TEST_CASE( "JsonWriter escapes charaters in strings properly", "[JsonWriter]" ) { | ||||
| TEST_CASE( "JsonWriter escapes characters in strings properly", "[JsonWriter]" ) { | ||||
|     std::stringstream sstream; | ||||
|     SECTION( "Quote in a string is escaped" ) { | ||||
|         Catch::JsonValueWriter{ sstream }.write( "\"" ); | ||||
|   | ||||
| @@ -151,7 +151,7 @@ TEMPLATE_TEST_CASE( "uniform_integer_distribution can handle unit ranges", | ||||
|     Catch::SimplePcg32 pcg( seed ); | ||||
|  | ||||
|     // We check unitary ranges of 3 different values, min for type, max for type, | ||||
|     // some value inbetween just to make sure | ||||
|     // some value in between just to make sure | ||||
|     SECTION("lowest value") { | ||||
|         constexpr auto lowest = std::numeric_limits<TestType>::min(); | ||||
|         Catch::uniform_integer_distribution<TestType> dist( lowest, lowest ); | ||||
| @@ -180,7 +180,7 @@ TEST_CASE( "uniform_integer_distribution can handle boolean unit ranges", | ||||
|     Catch::SimplePcg32 pcg( seed ); | ||||
|  | ||||
|     // We check unitary ranges of 3 different values, min for type, max for | ||||
|     // type, some value inbetween just to make sure | ||||
|     // type, some value in between just to make sure | ||||
|     SECTION( "lowest value" ) { | ||||
|         Catch::uniform_integer_distribution<bool> dist( false, false ); | ||||
|         CheckReturnValue( dist, pcg, false ); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Chris Thrasher
					Chris Thrasher