mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Nibbler: Removed unused ::getRx method
This commit is contained in:
parent
de66200028
commit
1e8eac0e3d
3 changed files with 0 additions and 57 deletions
|
@ -35,11 +35,7 @@ Context context;
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int main (int, char**)
|
||||
{
|
||||
#ifdef NIBBLER_FEATURE_REGEX
|
||||
UnitTest t (325);
|
||||
#else
|
||||
UnitTest t (315);
|
||||
#endif
|
||||
|
||||
// Ensure environment has no influence.
|
||||
unsetenv ("TASKDATA");
|
||||
|
@ -290,22 +286,6 @@ int main (int, char**)
|
|||
t.ok (n.getLiteral ("bar"), " 'bar' : getLiteral ('bar') -> true");
|
||||
t.ok (n.depleted (), " '' : depleted () -> true");
|
||||
|
||||
#ifdef NIBBLER_FEATURE_REGEX
|
||||
// bool getRx (const std::string&, std::string&);
|
||||
t.diag ("Nibbler::getRx");
|
||||
n = Nibbler ("one two three");
|
||||
t.ok (n.getRx ("^(o..)", s), "'one two three' : getRx ('^(o..)') -> true");
|
||||
t.is (s, "one", "'one two three' : getRx ('^(o..)') -> 'one'");
|
||||
t.ok (n.skip (' '), " ' two three' : skip (' ') -> true");
|
||||
t.ok (n.getRx ("t..", s), " 'two three' : getRx ('t..') -> true");
|
||||
t.is (s, "two", " 'two three' : getRx ('t..') -> 'two'");
|
||||
t.notok (n.getRx ("th...", s), " ' three' : getRx ('th...') -> false");
|
||||
t.ok (n.skip (' '), " ' three' : skip (' ') -> true");
|
||||
t.ok (n.getRx ("th...", s), " 'three' : getRx ('th...') -> true");
|
||||
t.is (s, "three", " 'three' : getRx ('th...') -> 'three'");
|
||||
t.ok (n.depleted (), " '' : depleted () -> true");
|
||||
#endif
|
||||
|
||||
// bool getUUID (std::string&);
|
||||
t.diag ("Nibbler::getUUID");
|
||||
n = Nibbler ("a0b1c2d3-e4f5-A6B7-C8D9-E0F1a2b3c4d5");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue