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:
Paul Beckingham 2011-08-07 22:41:25 -04:00
parent 85e77c1958
commit e2a8f85a2f
13 changed files with 120 additions and 128 deletions

View file

@ -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;
}