]> Dogcows Code - chaz/vimcoder/blobdiff - src/com/dogcows/resources/C++Driver
trailing whitespace cleanup
[chaz/vimcoder] / src / com / dogcows / resources / C++Driver
index 9ca857968510527b6388536028a3a67e6dbf0a2d..89e00f0678349fa54f17d27c59bd8fef604cebf6 100644 (file)
@@ -67,10 +67,6 @@ std::istream& operator >> (std::istream& in, std::string& str)
                }
                str = s.str();
        }
-       else
-       {
-               in.putback(c);
-       }
 
        return in;
 }
@@ -94,10 +90,6 @@ std::istream& operator >> (std::istream& in, std::vector<T>& vec)
                        while (in.good() && std::isspace(in.peek())) in.get();
                }
        }
-       else
-       {
-               in.putback(c);
-       }
 
        return in;
 }
@@ -140,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(;;)
        {
@@ -150,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;
This page took 0.023444 seconds and 4 git commands to generate.