bool __exit_on_fail = false;
int __pass = 0;
int __fail = 0;
-
+
if (1 < argc) __exit_on_fail = true;
-
+
std::ifstream __in("testcases.txt");
for(;;)
{
$METHODPARAMDECLARES$
__in >> __expected >> $METHODPARAMSTREAMIN$;
if (!__in.good()) break;
-
+
std::cout << "----------------------------------------" << std::endl
<< "Test " << (__pass + __fail) << ": ";
std::cout.flush();
-
+
__timer_start();
-
+
$CLASSNAME$ object;
$RETURNTYPE$ __actual = object.$METHODNAME$($METHODPARAMNAMES$);
-
+
double __t = __timer_stop();
-
+
if (__equals(__actual, __expected))
{
std::cout << "[PASS] in " << __t << " seconds." << std::endl;