From 9117819d0764d40f6c352e509169b5e4053b5882 Mon Sep 17 00:00:00 2001 From: Sam Lidder Date: Sat, 18 Aug 2012 17:04:15 -0400 Subject: [PATCH] trailing whitespace cleanup --- src/com/dogcows/resources/C++Driver | 14 +++++++------- src/com/dogcows/resources/C++Makefile | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) 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 -- 2.45.2