]> Dogcows Code - chaz/vimcoder/blobdiff - src/com/dogcows/resources/C++Driver
add modelines with settings for current coding conventions
[chaz/vimcoder] / src / com / dogcows / resources / C++Driver
index 24ab333609ffa5ed8a51c9c80f0b32943fe2fb19..460916b183d339134344ca1549ce876b482c9b0b 100644 (file)
@@ -138,11 +138,11 @@ bool __equals(const std::vector<double>& actual, const std::vector<double>& expe
 
 int main(int argc, char* argv[])
 {
-       bool    __exit_on_fail = false;
+       bool    __abort_on_fail = false;
        int     __pass = 0;
        int     __fail = 0;
 
-       if (1 < argc) __exit_on_fail = true;
+       if (1 < argc) __abort_on_fail = true;
 
        std::ifstream __in("testcases.txt");
        for(;;)
@@ -175,7 +175,7 @@ int main(int argc, char* argv[])
                                  << "   Actual: " << __actual << std::endl
                                  << " Expected: " << __expected << std::endl;
                        ++__fail;
-                       if (__exit_on_fail) exit(1);
+                       if (__abort_on_fail) std::abort();
                }
        }
 
@@ -193,3 +193,4 @@ int main(int argc, char* argv[])
        return __fail;
 }
 
+// vim:ft=cpp:noet:ts=8
This page took 0.025833 seconds and 4 git commands to generate.