File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
src/com/dogcows/resources Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -132,28 +132,28 @@ int main(int argc, char* argv[])
132
132
bool __exit_on_fail = false;
133
133
int __pass = 0;
134
134
int __fail = 0;
135
-
135
+
136
136
if (1 < argc) __exit_on_fail = true;
137
-
137
+
138
138
std::ifstream __in("testcases.txt");
139
139
for(;;)
140
140
{
141
141
$RETURNTYPE$ __expected;
142
142
$METHODPARAMDECLARES$
143
143
__in >> __expected >> $METHODPARAMSTREAMIN$;
144
144
if (!__in.good()) break;
145
-
145
+
146
146
std::cout << "----------------------------------------" << std::endl
147
147
<< "Test " << (__pass + __fail) << ": ";
148
148
std::cout.flush();
149
-
149
+
150
150
__timer_start();
151
-
151
+
152
152
$CLASSNAME$ object;
153
153
$RETURNTYPE$ __actual = object.$METHODNAME$($METHODPARAMNAMES$);
154
-
154
+
155
155
double __t = __timer_stop();
156
-
156
+
157
157
if (__equals(__actual, __expected))
158
158
{
159
159
std::cout << "[PASS] in " << __t << " seconds." << std::endl;
Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ CXX = g++
3
3
CXXFLAGS = -O0 -ggdb -Wall
4
4
5
5
all: driver
6
-
6
+
7
7
run: all
8
8
./driver
9
-
9
+
10
10
test: all
11
11
./driver -exit_on_fail
12
-
12
+
13
13
driver.o: $CLASSNAME$.o
14
14
15
15
driver: driver.o
You can’t perform that action at this time.
0 commit comments