mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-20 04:13:07 +02:00
Task Refactoring
- Task is no longer a map of string to Att. Att is itself a name/ value pair, so the name was redundant. Task is now a map of string to string. This brings the obsoletion of Att much closer.
This commit is contained in:
parent
85e77c1958
commit
e2a8f85a2f
13 changed files with 120 additions and 128 deletions
|
@ -35,7 +35,7 @@ Context context;
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int main (int argc, char** argv)
|
||||
{
|
||||
UnitTest t (21);
|
||||
UnitTest t (20);
|
||||
|
||||
// (blank)
|
||||
bool good = true;
|
||||
|
@ -105,9 +105,7 @@ int main (int argc, char** argv)
|
|||
t.is (task.composeF4 (), "[name:\"value\"]\n", "Task::remove");
|
||||
|
||||
// Task::all
|
||||
std::vector <Att> all = task.all ();
|
||||
t.is (all.size (), (size_t)1, "Task::all size");
|
||||
t.is (all[0].name (), "name", "Task::all[0].name ()");
|
||||
t.is (task.size (), (size_t)1, "Task::all size");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue