From: Sam Lidder Date: Sat, 18 Aug 2012 21:04:15 +0000 (-0400) Subject: trailing whitespace cleanup X-Git-Tag: v0.3.3~5 X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=9117819d0764d40f6c352e509169b5e4053b5882;p=chaz%2Fvimcoder trailing whitespace cleanup --- diff --git a/src/com/dogcows/resources/C++Driver b/src/com/dogcows/resources/C++Driver index 60ef873..89e00f0 100644 --- a/src/com/dogcows/resources/C++Driver +++ b/src/com/dogcows/resources/C++Driver @@ -132,9 +132,9 @@ int main(int argc, char* argv[]) bool __exit_on_fail = false; int __pass = 0; int __fail = 0; - + if (1 < argc) __exit_on_fail = true; - + std::ifstream __in("testcases.txt"); for(;;) { @@ -142,18 +142,18 @@ int main(int argc, char* argv[]) $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; diff --git a/src/com/dogcows/resources/C++Makefile b/src/com/dogcows/resources/C++Makefile index 83798d4..3b0a60b 100644 --- a/src/com/dogcows/resources/C++Makefile +++ b/src/com/dogcows/resources/C++Makefile @@ -3,13 +3,13 @@ CXX = g++ CXXFLAGS = -O0 -ggdb -Wall all: driver - + run: all ./driver - + test: all ./driver -exit_on_fail - + driver.o: $CLASSNAME$.o driver: driver.o