mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Merge from libexpr
- Incorporated Nibbler changes from libexpr.
This commit is contained in:
parent
4efe5d4a52
commit
efae57d56b
3 changed files with 107 additions and 2 deletions
|
@ -268,6 +268,24 @@ int main (int argc, char** argv)
|
|||
t.is (i, 2, " '2x' : getDigit () -> 2");
|
||||
t.notok (n.getDigit (i), " 'x' : getDigit () -> false");
|
||||
|
||||
// bool getDigit6 (int&);
|
||||
t.diag ("Nibbler::getDigit6");
|
||||
n = Nibbler ("654321");
|
||||
t.ok (n.getDigit6 (i), " 654321 : getDigit6 () -> true");
|
||||
t.is (i, 654321, " 654321 : getDigit6 () -> 654321");
|
||||
|
||||
// bool getDigit4 (int&);
|
||||
t.diag ("Nibbler::getDigit4");
|
||||
n = Nibbler ("4321");
|
||||
t.ok (n.getDigit4 (i), " 4321 : getDigit4 () -> true");
|
||||
t.is (i, 4321, " 4321 : getDigit4 () -> 4321");
|
||||
|
||||
// bool getDigit2 (int&);
|
||||
t.diag ("Nibbler::getDigit2");
|
||||
n = Nibbler ("21");
|
||||
t.ok (n.getDigit2 (i), " 21 : getDigit2 () -> true");
|
||||
t.is (i, 21, " 21 : getDigit2 () -> 21");
|
||||
|
||||
// bool getInt (int&);
|
||||
t.diag ("Nibbler::getInt");
|
||||
n = Nibbler ("123 -4");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue