forked from Alepha/Alepha
Fix bug in split, where the last item is discarded.
This commit is contained in:
@ -47,4 +47,11 @@ static auto init= enroll <=[]
|
||||
}
|
||||
catch( ... ) {}
|
||||
};
|
||||
|
||||
"Does the `split` function handle simple cases correctly?"_test <=TableTest< Alepha::split >::Cases
|
||||
{
|
||||
{ "Empty string", { "", ':' }, { "" } },
|
||||
{ "Single token", { "item", ':' }, { "item" } },
|
||||
{ "Two tokens", { "first:second", ':' }, { "first", "second" } },
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user