mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Added find() offset case-insensitive tests
This commit is contained in:
parent
47970ab166
commit
ca62874515
1 changed files with 4 additions and 1 deletions
|
@ -37,7 +37,7 @@ Context context;
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int main (int argc, char** argv)
|
||||
{
|
||||
UnitTest t (222);
|
||||
UnitTest t (224);
|
||||
|
||||
// Ensure environment has no influence.
|
||||
unsetenv ("TASKDATA");
|
||||
|
@ -357,6 +357,9 @@ int main (int argc, char** argv)
|
|||
t.is ((int) find ("one two three", "e", 3, true), (int) 11, "offset obeyed");
|
||||
t.is ((int) find ("one two three", "e", 11, true), (int) 11, "offset obeyed");
|
||||
|
||||
t.is ((int) find ("one two three", "e", 3, false), (int) 11, "offset obeyed");
|
||||
t.is ((int) find ("one two three", "e", 11, false), (int) 11, "offset obeyed");
|
||||
|
||||
// int strippedLength (const std::string&);
|
||||
t.is (strippedLength (std::string ("")), 0, "strippedLength -> 0");
|
||||
t.is (strippedLength (std::string ("abc")), 3, "strippedLength abc -> 3");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue