
#include <coll/coll.h>


main()
{
  id dict = [[Dictionary alloc] initDescription:"*"
	     keyDescription:"*"];
  id translator = [[Dictionary alloc] initDescription:"*"
		   keyDescription:"*"];
  id mc;

  [dict insertElement:"herd" atKey:"cow"];
  [dict insertElement:"pack" atKey:"dog"];
  [dict insertElement:"school" atKey:"fish"];
  [dict insertElement:"flock" atKey:"bird"];
  [dict insertElement:"pride" atKey:"cat"];
  [dict insertElement:"gaggle" atKey:"goose"];
  [dict printForDebugger];
  printf("removing goose\n");
  [dict removeElementAtKey:"goose"];
  [dict printForDebugger];

  [translator insertElement:"cow" atKey:"vache"];
  [translator insertElement:"dog" atKey:"chien"];
  [translator insertElement:"fish" atKey:"poisson"];
  [translator insertElement:"bird" atKey:"oisseau"];
  [translator insertElement:"cat" atKey:"chat"];

  mc = [[MappedCollector alloc] initCollection:dict map:translator];
  [mc printForDebugger];

  [mc free];
  [dict free];
  [translator free];

  exit(0);

}


