*
*/
-#include "mem_config.h"
+#include "libtest/yatlcon.h"
#include <libtest/common.h>
-#include <iostream>
+#include <algorithm>
#include <fstream>
+#include <iostream>
namespace libtest {
libtest::Timer _timer;
};
-Formatter::Formatter(const std::string& arg) :
- _suite_name(arg)
+Formatter::Formatter(const std::string& frame_name, const std::string& arg)
{
+ _suite_name= frame_name;
+ _suite_name+= ".";
+ _suite_name+= arg;
}
Formatter::~Formatter()
{
- for (TestCases::iterator iter= _testcases.begin(); iter != _testcases.end(); ++iter)
- {
- delete *iter;
- }
+ std::for_each(_testcases.begin(), _testcases.end(), DeleteFromVector());
+ _testcases.clear();
}
TestCase* Formatter::current()