Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/tests/SelfTest/IntrospectiveTests/Stream.tests.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2022-03-21 00:22:54 +0100
committerMartin Hořeňovský2022-03-24 16:02:51 +0100
commit4d8acafecb973d9b03178346c3f1566fe7485fb1 (patch)
tree9d3ffd8440bdc530785e81e1a140c0738d9e8f8c /tests/SelfTest/IntrospectiveTests/Stream.tests.cpp
parentcf6dd937ab2ff62d29b34d62411cfd03d3822021 (diff)
downloadcatch3-4d8acafecb973d9b03178346c3f1566fe7485fb1.tar.gz
Rename isStdout => isConsole and add doccomment
Diffstat (limited to 'tests/SelfTest/IntrospectiveTests/Stream.tests.cpp')
-rw-r--r--tests/SelfTest/IntrospectiveTests/Stream.tests.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/SelfTest/IntrospectiveTests/Stream.tests.cpp b/tests/SelfTest/IntrospectiveTests/Stream.tests.cpp
index 4ba08ee5..9d647b0d 100644
--- a/tests/SelfTest/IntrospectiveTests/Stream.tests.cpp
+++ b/tests/SelfTest/IntrospectiveTests/Stream.tests.cpp
@@ -11,16 +11,16 @@
#include <catch2/internal/catch_stream.hpp>
TEST_CASE( "Cout stream properly declares it writes to stdout", "[streams]" ) {
- REQUIRE( Catch::makeStream( "-" )->isStdout() );
+ REQUIRE( Catch::makeStream( "-" )->isConsole() );
}
TEST_CASE( "Empty stream name opens cout stream", "[streams]" ) {
- REQUIRE( Catch::makeStream( "" )->isStdout() );
+ REQUIRE( Catch::makeStream( "" )->isConsole() );
}
TEST_CASE( "stdout and stderr streams have %-starting name", "[streams]" ) {
- REQUIRE( Catch::makeStream( "%stderr" )->isStdout() );
- REQUIRE( Catch::makeStream( "%stdout" )->isStdout() );
+ REQUIRE( Catch::makeStream( "%stderr" )->isConsole() );
+ REQUIRE( Catch::makeStream( "%stdout" )->isConsole() );
}
TEST_CASE( "request an unknown %-starting stream fails", "[streams]" ) {