<feed xmlns='http://www.w3.org/2005/Atom'>
<title>catch3/tests/SelfTest/UsageTests, branch v3.3.2</title>
<subtitle>Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.</subtitle>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/'/>
<entry>
<title>Add IsNaN matcher</title>
<updated>2023-02-25T23:14:32+00:00</updated>
<author>
<name>Martin Hořeňovský</name>
</author>
<published>2023-02-25T23:14:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/commit/?id=6fbb3f07235311d0c228b17b52406343a7aed8f2'/>
<id>6fbb3f07235311d0c228b17b52406343a7aed8f2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for iterator+sentinel pairs in Contains matcher</title>
<updated>2023-02-10T22:25:45+00:00</updated>
<author>
<name>Martin Hořeňovský</name>
</author>
<published>2023-02-10T22:25:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/commit/?id=e8ba329b6c66b06c4afd07953020b74c4b0f1a75'/>
<id>e8ba329b6c66b06c4afd07953020b74c4b0f1a75</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Enable use of UnorderedRangeEquals with iterator+sentinel pairs</title>
<updated>2023-02-06T14:34:38+00:00</updated>
<author>
<name>Martin Hořeňovský</name>
</author>
<published>2023-02-06T14:34:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/commit/?id=cefa8fcf329c950493f80dcbf7e2870a20213e0f'/>
<id>cefa8fcf329c950493f80dcbf7e2870a20213e0f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add Catch::Detail::is_permutation that supports sentinels</title>
<updated>2023-02-06T14:29:01+00:00</updated>
<author>
<name>Martin Hořeňovský</name>
</author>
<published>2023-02-05T15:40:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/commit/?id=772fa3f7902b534d59e5fe4306e3cc6a255a6508'/>
<id>772fa3f7902b534d59e5fe4306e3cc6a255a6508</id>
<content type='text'>
Also split out helpers for testing matcher ranges (types whose
begin/end/empty/etc require ADL lookup, types whose iteration
uses iterator + sentinel pair, etc) into their own file.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also split out helpers for testing matcher ranges (types whose
begin/end/empty/etc require ADL lookup, types whose iteration
uses iterator + sentinel pair, etc) into their own file.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix RangeEquals matcher to handle iterator + sentinel ranges</title>
<updated>2023-02-03T17:22:41+00:00</updated>
<author>
<name>Martin Hořeňovský</name>
</author>
<published>2023-02-03T15:12:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/commit/?id=f3c0a3cd091aba8341a77e5c8580e5697f0e6892'/>
<id>f3c0a3cd091aba8341a77e5c8580e5697f0e6892</id>
<content type='text'>
Also added tests for types that require ADL lookup for their
`begin` and `end`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also added tests for types that require ADL lookup for their
`begin` and `end`.
</pre>
</div>
</content>
</entry>
<entry>
<title>Stop exceptions in generator constructors from aborting the binary</title>
<updated>2023-01-22T15:04:16+00:00</updated>
<author>
<name>Martin Hořeňovský</name>
</author>
<published>2023-01-17T10:04:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/commit/?id=8359a6b244a26cffabd4440b17fac8b1392815af'/>
<id>8359a6b244a26cffabd4440b17fac8b1392815af</id>
<content type='text'>
Fixes #2615
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #2615
</pre>
</div>
</content>
</entry>
<entry>
<title>Added ElementsAre and UnorderedElementsAre  (#2377)</title>
<updated>2023-01-21T23:33:04+00:00</updated>
<author>
<name>John Beard</name>
</author>
<published>2023-01-21T23:33:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/commit/?id=efca9a0f1826885c1574ed44fc37c8d82ded4546'/>
<id>efca9a0f1826885c1574ed44fc37c8d82ded4546</id>
<content type='text'>
Co-authored-by: Garz4 &lt;fancygarz4@gmail.com&gt;
Co-authored-by: Martin Hořeňovský &lt;martin.horenovsky@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Garz4 &lt;fancygarz4@gmail.com&gt;
Co-authored-by: Martin Hořeňovský &lt;martin.horenovsky@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Add new SKIP macro for skipping tests at runtime (#2360)</title>
<updated>2023-01-12T14:01:47+00:00</updated>
<author>
<name>Philip Salzmann</name>
</author>
<published>2023-01-12T14:01:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/commit/?id=d548be26e3c54abc7e0b076319057d334e3ac589'/>
<id>d548be26e3c54abc7e0b076319057d334e3ac589</id>
<content type='text'>
* Add new SKIP macro for skipping tests at runtime

This adds a new `SKIP` macro for dynamically skipping tests at runtime.
The "skipped" status of a test case is treated as a first-class citizen,
like "succeeded" or "failed", and is reported with a new color on the
console.

* Don't show "skipped assertions" in console/compact reporters

Also extend skip tests to cover a few more use cases.

* Return exit code 4 if all test cases are skipped

* Use LightGrey for the skip colour

This isn't great, but is better than the deep blue that was borderline
invisible on dark backgrounds. The fix is to redo the colouring
a bit, including introducing light-blue that is actually visible.

* Add support for explicit skips in all reporters

* --allow-running-no-tests also allows all tests to be skipped

* Add docs for SKIP macro, deprecate IEventListener::skipTest

Co-authored-by: Martin Hořeňovský &lt;martin.horenovsky@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add new SKIP macro for skipping tests at runtime

This adds a new `SKIP` macro for dynamically skipping tests at runtime.
The "skipped" status of a test case is treated as a first-class citizen,
like "succeeded" or "failed", and is reported with a new color on the
console.

* Don't show "skipped assertions" in console/compact reporters

Also extend skip tests to cover a few more use cases.

* Return exit code 4 if all test cases are skipped

* Use LightGrey for the skip colour

This isn't great, but is better than the deep blue that was borderline
invisible on dark backgrounds. The fix is to redo the colouring
a bit, including introducing light-blue that is actually visible.

* Add support for explicit skips in all reporters

* --allow-running-no-tests also allows all tests to be skipped

* Add docs for SKIP macro, deprecate IEventListener::skipTest

Co-authored-by: Martin Hořeňovský &lt;martin.horenovsky@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Add MessageMatches matcher for exception (#2570)</title>
<updated>2022-12-11T23:40:47+00:00</updated>
<author>
<name>lbckmnn</name>
</author>
<published>2022-12-11T23:40:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/commit/?id=9c0533a90504b2b1c308dc7cc77ff194f81046e2'/>
<id>9c0533a90504b2b1c308dc7cc77ff194f81046e2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Move SFINAE in decomposer into return type</title>
<updated>2022-12-08T23:40:01+00:00</updated>
<author>
<name>Martin Hořeňovský</name>
</author>
<published>2022-12-08T15:31:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/commit/?id=28e651f1521449f2fce8b202307b6312a0ebe429'/>
<id>28e651f1521449f2fce8b202307b6312a0ebe429</id>
<content type='text'>
This is needed so that we can use conjunction and other logical
type traits to workaround issue with older GCC versions (8 and
below), when they run into types that have ambiguous constructor
from `0`, see e.g. #2571.

However, using conjunction and friends in the SFINAE constraint
in the template parameter breaks for C++20 and up, due to the new
comparison operator rewriting rules. With C++20, when the compiler
see `a == b`, it also tries `b == a` and collects overload set
for both of these expressions.

In Catch2, this means that e.g. `REQUIRE( 1 == 2 )` would lead
the compiler to check overloads for both `ExprLhs&lt;int&gt; == int`
and `int == ExprLhs&lt;int&gt;`. Since the overload set and SFINAE
constraints assume that `ExprLhs&lt;T&gt;` is always on the left side,
when the compiler tries to resolve the template parameters, all
hell breaks loose and the compilation fails.

By moving the SFINAE constraints to the return type, the compiler
can discard the switched expression without having to resolve
the complex SFINAE constraints, and thus everything works the
way it is supposed to.

Fixes #2571
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is needed so that we can use conjunction and other logical
type traits to workaround issue with older GCC versions (8 and
below), when they run into types that have ambiguous constructor
from `0`, see e.g. #2571.

However, using conjunction and friends in the SFINAE constraint
in the template parameter breaks for C++20 and up, due to the new
comparison operator rewriting rules. With C++20, when the compiler
see `a == b`, it also tries `b == a` and collects overload set
for both of these expressions.

In Catch2, this means that e.g. `REQUIRE( 1 == 2 )` would lead
the compiler to check overloads for both `ExprLhs&lt;int&gt; == int`
and `int == ExprLhs&lt;int&gt;`. Since the overload set and SFINAE
constraints assume that `ExprLhs&lt;T&gt;` is always on the left side,
when the compiler tries to resolve the template parameters, all
hell breaks loose and the compilation fails.

By moving the SFINAE constraints to the return type, the compiler
can discard the switched expression without having to resolve
the complex SFINAE constraints, and thus everything works the
way it is supposed to.

Fixes #2571
</pre>
</div>
</content>
</entry>
</feed>
