mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Lexer
- Replaced old digitsOnly() function with Lexer::isAllDigits.
This commit is contained in:
parent
9f82926c65
commit
26aff348d2
7 changed files with 9 additions and 26 deletions
|
@ -37,7 +37,7 @@ Context context;
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int main (int argc, char** argv)
|
||||
{
|
||||
UnitTest t (209);
|
||||
UnitTest t (205);
|
||||
|
||||
// Ensure environment has no influence.
|
||||
unsetenv ("TASKDATA");
|
||||
|
@ -290,12 +290,6 @@ int main (int argc, char** argv)
|
|||
t.ok (nontrivial (" \t\ta"), "nontrivial ' \\t\\ta' -> true");
|
||||
t.ok (nontrivial ("a\t\t "), "nontrivial 'a\\t\\t ' -> true");
|
||||
|
||||
// bool digitsOnly (const std::string&);
|
||||
t.ok (digitsOnly (""), "digitsOnly '' -> true");
|
||||
t.ok (digitsOnly ("0"), "digitsOnly '0' -> true");
|
||||
t.ok (digitsOnly ("123"), "digitsOnly '123' -> true");
|
||||
t.notok (digitsOnly ("12fa"), "digitsOnly '12fa' -> false");
|
||||
|
||||
// bool compare (const std::string&, const std::string&, bool caseless = false);
|
||||
// Make sure degenerate cases are handled.
|
||||
t.ok (compare ("", ""), "'' == ''");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue