mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Added low-level hyphenation test
This commit is contained in:
parent
cb82946ad5
commit
8cab89a44c
1 changed files with 7 additions and 1 deletions
|
@ -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 = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue