Test: Added low-level hyphenation test
This commit is contained in:
@@ -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 = "";
|
||||
|
||||
Reference in New Issue
Block a user