1 #include "catch.hpp" 2 3 #if defined(CATCH_CONFIG_CPP17_BYTE) 4 5 TEST_CASE( "std::byte -> toString", "[toString][byte][approvals]" ) { 6 using type = std::byte; 7 REQUIRE( "0" == ::Catch::Detail::stringify( type{ 0 } ) ); 8 } 9 10 TEST_CASE( "std::vector<std::byte> -> toString", "[toString][byte][approvals]" ) { 11 using type = std::vector<std::byte>; 12 REQUIRE( "{ 0, 1, 2 }" == ::Catch::Detail::stringify( type{ std::byte{0}, std::byte{1}, std::byte{2} } ) ); 13 } 14 15 #endif // CATCH_INTERNAL_CONFIG_CPP17_BYTE 16