mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-04 03:18:33 +02:00
Unit Tests
- Added unit tests for the '<=' and '>=' operators. All tests pass, which makes a nice treat. - Added more tests to '<' and '>' operators, so that all three data types are covered.
This commit is contained in:
parent
a4fca31e7d
commit
f11c8ee5c6
5 changed files with 182 additions and 11 deletions
|
@ -232,7 +232,6 @@ void E9::operator_not (Arg& result, Arg& right)
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
void E9::operator_and (Arg& result, Arg& left, Arg& right)
|
||||
{
|
||||
// Assume failure.
|
||||
result._value = "false";
|
||||
result._type = Arg::type_bool;
|
||||
|
||||
|
@ -248,7 +247,6 @@ void E9::operator_and (Arg& result, Arg& left, Arg& right)
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
void E9::operator_or (Arg& result, Arg& left, Arg& right)
|
||||
{
|
||||
// Assume failure.
|
||||
result._value = "false";
|
||||
result._type = Arg::type_bool;
|
||||
|
||||
|
@ -264,7 +262,6 @@ void E9::operator_or (Arg& result, Arg& left, Arg& right)
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
void E9::operator_xor (Arg& result, Arg& left, Arg& right)
|
||||
{
|
||||
// Assume failure.
|
||||
result._value = "false";
|
||||
result._type = Arg::type_bool;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue