Test: Added low-level hyphenation test

This commit is contained in:
Paul Beckingham 2015-07-11 15:31:39 -04:00
parent cb82946ad5
commit 8cab89a44c

View file

@ -37,7 +37,7 @@ Context context;
////////////////////////////////////////////////////////////////////////////////
int main (int argc, char** argv)
{
UnitTest t (205);
UnitTest t (206);
// Ensure environment has no influence.
unsetenv ("TASKDATA");
@ -103,6 +103,12 @@ int main (int argc, char** argv)
t.notok (extractLine (line, text, 10, true, offset), "extractLine 10 '' -> ''");
text = "AAAAAAAAAABBBBBBBBBB";
offset = 0;
extractLine (line, text, 10, true, offset);
t.is (line, "AAAAAAAAA-", "extractLine hyphenated unbreakable line");
t.diag (line);
// void split (std::vector<std::string>& results, const std::string& input, const char delimiter)
std::vector <std::string> items;
std::string unsplit = "";