forked from Alepha/Alepha
Expose the stream value adaptor for tests.
This will permit calling this stream adaptor from various contexts which are test related.
This commit is contained in:
@ -39,6 +39,9 @@ namespace Alepha::Hydrogen::Testing ::detail:: printDebugging_m
|
||||
|
||||
template< OutputMode outputMode, typename T >
|
||||
void printDebugging( const T &witness, const T &expected );
|
||||
|
||||
template< OutputMode outputMode, typename T >
|
||||
auto streamAdaptValue( const T &v );
|
||||
}
|
||||
|
||||
using namespace std::literals::string_literals;
|
||||
@ -143,7 +146,7 @@ namespace Alepha::Hydrogen::Testing ::detail:: printDebugging_m
|
||||
|
||||
template< OutputMode outputMode, typename T >
|
||||
auto
|
||||
streamAdaptValue( const T &v )
|
||||
exports::streamAdaptValue( const T &v )
|
||||
{
|
||||
return Adaptor< outputMode, std::decay_t< T > >{ v };
|
||||
}
|
||||
|
Reference in New Issue
Block a user