mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Expose is_* methods on tasks.
This commit is contained in:
parent
7c27f116ad
commit
88333ac785
5 changed files with 53 additions and 3 deletions
|
@ -37,7 +37,7 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int main (int, char**)
|
||||
{
|
||||
UnitTest t (21);
|
||||
UnitTest t (23);
|
||||
|
||||
// This function contains unit tests for the various bits of the wrappers for
|
||||
// taskchampion-lib (that is, for `src/tc/*.cpp`).
|
||||
|
@ -92,6 +92,8 @@ int main (int, char**)
|
|||
auto map = task.get_taskmap ();
|
||||
t.is (map["description"], "a test", "task description in taskmap");
|
||||
t.is (task.get_description(), "a test", "returned task has correct description");
|
||||
t.is (task.is_waiting(), false, "task is not waiting");
|
||||
t.is (task.is_active(), false, "task is not active");
|
||||
|
||||
//// WorkingSet
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue