forked from Alepha/Alepha
Delimited list test needs to test disconnect.
This commit is contained in:
@ -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 )
|
|
||||||
{
|
{
|
||||||
os << Alepha::IOStreams::fieldDelimiter;
|
[]( std::ostream &os )
|
||||||
}
|
{
|
||||||
};
|
os << Alepha::IOStreams::fieldDelimiter;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
oss );
|
||||||
|
|
||||||
for( const auto &name: names )
|
for( const auto &name: names )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user