1
0
forked from Alepha/Alepha

Relax the test print debugging rules.

A type which cannot be printed when streamed in "Relaxed"
mode will simply print the typeid and that's it.  This is
opposed to its original behaviour which would be a compile
time error.
This commit is contained in:
2024-06-13 18:03:33 -04:00
parent 33fa7cc711
commit fc02d1a0c3

View File

@ -127,7 +127,11 @@ namespace Alepha::Hydrogen::Testing ::detail:: printDebugging_m
} }
else else
{ {
static_assert( dependent_value< false, T >, "One of the types used in the testing table does not support stringification." ); if constexpr( outputMode == OutputMode::Relaxed )
{
oss << "<Unstreamable object of type `" << typeid( v ).name() << "`>";
}
else static_assert( dependent_value< false, T >, "One of the types used in the testing table does not support stringification." );
} }
} }