-$TESTCASES$
- std::cout << "========================================" << std::endl
- << " Total Pass: " << __pass << std::endl
- << " Total Fail: " << __fail << std::endl;
+ std::cout << "# input for test " << __testnum << ": " << $METHODPARAMSTREAMOUT$ << std::endl;
+ std::cout.flush();
+
+ __timer_start();
+
+ $CLASSNAME$ __object;
+ $RETURNTYPE$ __actual = __object.$METHODNAME$($METHODPARAMNAMES$);
+
+ double __t = __timer_stop();
+
+ std::cout << "# test completed in " << __t << "ms" << std::endl;
+ std::cout.flush();
+
+ if (__equals(__actual, __expected))
+ {
+ std::cout << "ok";
+ ++__pass;
+ }
+ else
+ {
+ std::cout << "not ok";
+ ++__fail;
+ }
+
+ std::cout << " " << __testnum << " - " << __actual << " must equal " << __expected << std::endl;
+ std::cout.flush();
+
+ if (__abort_on_fail && 0 < __fail) std::abort();
+ }
+
+ std::cout << "1.." << (__pass + __fail) << std::endl
+ << "# passed: " << __pass << std::endl
+ << "# failed: " << __fail << std::endl;
+
+ if (__fail == 0)
+ {
+ std::cout << std::endl
+ << "# Nice! Don't forget to compile remotely before submitting." << std::endl;
+ }