1
0
forked from Alepha/Alepha

Delimited list test needs to test disconnect.

This commit is contained in:
2024-04-04 22:38:45 -04:00
parent 8ae94293ce
commit dd674bf35a

View File

@ -21,7 +21,8 @@ static auto init= Alepha::Utility::enroll <=[]
[]( std::vector< std::string > names ) []( std::vector< std::string > names )
{ {
std::ostringstream oss; std::ostringstream oss;
oss << Alepha::StartDelimitedList{ ", "s }; auto delim= adaptStream( Alepha::StartDelimitedList{ ", "s }, oss );
for( const auto &name: names ) for( const auto &name: names )
{ {
oss << Alepha::NextItem << name; oss << Alepha::NextItem << name;
@ -42,13 +43,14 @@ static auto init= Alepha::Utility::enroll <=[]
std::ostringstream oss; std::ostringstream oss;
oss << setDelimiter( Alepha::IOStreams::fieldDelimiter, ", " ); oss << setDelimiter( Alepha::IOStreams::fieldDelimiter, ", " );
oss << Alepha::StartDelimitedList auto delim= adaptStream( Alepha::StartDelimitedList
{ {
[]( std::ostream &os ) []( std::ostream &os )
{ {
os << Alepha::IOStreams::fieldDelimiter; os << Alepha::IOStreams::fieldDelimiter;
} }
}; },
oss );
for( const auto &name: names ) for( const auto &name: names )
{ {