18 lines
422 B
C++
18 lines
422 B
C++
|
#include <gtest/gtest.h>
|
||
|
#include <yycc.hpp>
|
||
|
#include <yycc/windows/console.hpp>
|
||
|
|
||
|
#define CONSOLE ::yycc::windows::console
|
||
|
|
||
|
namespace yycctest::windows::console {
|
||
|
#if defined(YYCC_OS_WINDOWS) && defined(YYCC_STL_MSSTL)
|
||
|
|
||
|
TEST(WindowsConsole, ColorfulConsole) {
|
||
|
// Set colorful console should always be success.
|
||
|
auto rv = CONSOLE::colorful_console();
|
||
|
EXPECT_TRUE(rv.has_value());
|
||
|
}
|
||
|
|
||
|
#endif
|
||
|
}
|