Add IStream::isStdOut

This commit is contained in:
Martin Hořeňovský
2022-02-21 23:48:15 +01:00
parent 1d4b42ad7b
commit 715cd25081
21 changed files with 162 additions and 14 deletions

View File

@@ -3803,6 +3803,17 @@ Generators.tests.cpp:<line number>: PASSED:
with expansion:
6 == 6
-------------------------------------------------------------------------------
Cout stream properly declares it writes to stdout
-------------------------------------------------------------------------------
Stream.tests.cpp:<line number>
...............................................................................
Stream.tests.cpp:<line number>: PASSED:
REQUIRE( Catch::makeStream( "-" )->isStdout() )
with expansion:
true
-------------------------------------------------------------------------------
Custom exceptions can be translated when testing for nothrow
-------------------------------------------------------------------------------
@@ -3874,6 +3885,17 @@ with expansion:
==
"{** unexpected enum value **}"
-------------------------------------------------------------------------------
Empty stream name opens cout stream
-------------------------------------------------------------------------------
Stream.tests.cpp:<line number>
...............................................................................
Stream.tests.cpp:<line number>: PASSED:
REQUIRE( Catch::makeStream( "" )->isStdout() )
with expansion:
true
-------------------------------------------------------------------------------
Empty tag is not allowed
-------------------------------------------------------------------------------
@@ -17756,6 +17778,6 @@ Misc.tests.cpp:<line number>
Misc.tests.cpp:<line number>: PASSED:
===============================================================================
test cases: 381 | 291 passed | 83 failed | 7 failed as expected
assertions: 2226 | 2056 passed | 143 failed | 27 failed as expected
test cases: 383 | 293 passed | 83 failed | 7 failed as expected
assertions: 2228 | 2058 passed | 143 failed | 27 failed as expected