mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Merge branch '2.4.2' into lexer2
This commit is contained in:
commit
e1c0d5b130
3 changed files with 7 additions and 4 deletions
|
@ -137,9 +137,9 @@ int main (int argc, char** argv)
|
|||
t.is (result.get_integer (), 7, "infix '2*3+1' --> 7");
|
||||
|
||||
// TW-1254 - Unary minus support.
|
||||
e.evaluateInfixExpression ("2--3", result);
|
||||
t.is (result.type (), Variant::type_integer, "infix '2--3' --> integer");
|
||||
t.is (result.get_integer (), 5, "infix '2--3' --> 5");
|
||||
e.evaluateInfixExpression ("2- -3", result);
|
||||
t.is (result.type (), Variant::type_integer, "infix '2- -3' --> integer");
|
||||
t.is (result.get_integer (), 5, "infix '2- -3' --> 5");
|
||||
|
||||
//e.debug ();
|
||||
e.evaluateInfixExpression ("!false", result);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue