From 65361948ca7975553757a0e0df4ac7352413044c Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 14 May 2015 16:04:45 -0700 Subject: 1376 - update github docs --- html/002test.cc.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'html/002test.cc.html') diff --git a/html/002test.cc.html b/html/002test.cc.html index ef38f047..afbe45ca 100644 --- a/html/002test.cc.html +++ b/html/002test.cc.html @@ -2,7 +2,7 @@ -Mu - 002test.cc +~/Desktop/s/mu/002test.cc @@ -55,7 +55,7 @@ long Num_failures = 0;#define CHECK(X) \ if (!(X)) { \ ++Num_failures; \ - cerr << "\nF " << __FUNCTION__ << "(" << __FILE__ << ":" << __LINE__ << "): " << #X << '\n'; \ + cerr << "\nF - " << __FUNCTION__ << "(" << __FILE__ << ":" << __LINE__ << "): " << #X << '\n'; \ Passed = false; \ return; /* Currently we stop at the very first failure. */ \ } @@ -63,7 +63,7 @@ long Num_failures = 0;#define CHECK_EQ(X, Y) \ if ((X) != (Y)) { \ ++Num_failures; \ - cerr << "\nF " << __FUNCTION__ << "(" << __FILE__ << ":" << __LINE__ << "): " << #X << " == " << #Y << '\n'; \ + cerr << "\nF - " << __FUNCTION__ << "(" << __FILE__ << ":" << __LINE__ << "): " << #X << " == " << #Y << '\n'; \ cerr << " got " << (X) << '\n'; /* BEWARE: multiple eval */ \ Passed = false; \ return; /* Currently we stop at the very first failure. */ \ @@ -90,10 +90,12 @@ if (Run_tests) } // End Tests cerr << '\n'; - if (Num_failures > 0) + if (Num_failures > 0) { cerr << Num_failures << " failure" << (Num_failures > 1 ? "s" : "") << '\n'; + return 1; + } return 0; } @@ -114,7 +116,7 @@ bool is_number(const string& sreturn s.find_first_not_of("0123456789-.") == string::npos; } -long long int to_int(string n) { +long long int to_number(string n) { char* end = NULL; long long int result = strtoll(n.c_str(), &end, /*any base*/0); assert(*end == '\0'); -- cgit 1.4.1-2-gfad0