summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-06-05 13:59:43 -0400
committerErik Schnetter <schnetter@gmail.com>2013-06-05 13:59:43 -0400
commitbf83e9b7cc6119bdfd471b05c8610212e582ae2b (patch)
treea013a0a24f5220817b2b8046f52bf08aa80263d2
parent790367599d1b912203d833532154bf949c990e22 (diff)
downloadvecmathlib-bf83e9b7cc6119bdfd471b05c8610212e582ae2b.zip
vecmathlib-bf83e9b7cc6119bdfd471b05c8610212e582ae2b.tar.gz
More debug output
-rw-r--r--test.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/test.cc b/test.cc
index 5c0dcfd..7f59db1 100644
--- a/test.cc
+++ b/test.cc
@@ -141,11 +141,13 @@ struct vecmathlib_test {
}
#warning "undo this"
const boolvec_t isbad = x != xwant;
+ const boolvec_t isgood = x == xwant;
boolvec_t isbad2;
for (int i=0; i<realvec_t::size; ++i) {
isbad2.set_elt(i, x[i] != xwant[i]);
}
- cout << "isbad=" << isbad << " [" << hex(isbad) << "]\n"
+ cout << "isgood=" << isgood << " [" << hex(isgood) << "]\n"
+ << "isbad=" << isbad << " [" << hex(isbad) << "]\n"
<< "isbad2=" << isbad2 << " [" << hex(isbad2) << "]\n";
if (any(isbad2)) {
++ num_errors;
OpenPOWER on IntegriCloud