mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-18 10:48:39 +00:00
Fix stringifying of unknown enums
This commit is contained in:
parent
702cfdaf6e
commit
32eb90b9bd
7 changed files with 101 additions and 59 deletions
|
@ -28,9 +28,7 @@ TEST_CASE( "toString(enum w/operator<<)", "[toString][enum]" ) {
|
|||
// Enum class without user-provided stream operator
|
||||
enum class EnumClass1 { EnumClass1Value0, EnumClass1Value1 };
|
||||
|
||||
// This fails, but has been hidden for a while - not sure if it's a regression or if it never worked
|
||||
// - need to investigate
|
||||
TEST_CASE( "toString(enum class)", "[toString][enum][enumClass][.]" ) {
|
||||
TEST_CASE( "toString(enum class)", "[toString][enum][enumClass]" ) {
|
||||
EnumClass1 e0 = EnumClass1::EnumClass1Value0;
|
||||
CHECK( ::Catch::Detail::stringify(e0) == "0" );
|
||||
EnumClass1 e1 = EnumClass1::EnumClass1Value1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue