[PPL-devel] [GIT] ppl/ppl(master): Increase code coverage for PIP_Tree_Node printing methods.
Enea Zaffanella
zaffanella at cs.unipr.it
Sat Feb 27 10:30:58 CET 2010
Module: ppl/ppl
Branch: master
Commit: 10e2e18534c3cd348d8f1bba5e3d54f38166bce6
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=10e2e18534c3cd348d8f1bba5e3d54f38166bce6
Author: Enea Zaffanella <zaffanella at cs.unipr.it>
Date: Sat Feb 27 10:30:09 2010 +0100
Increase code coverage for PIP_Tree_Node printing methods.
---
tests/PIP_Problem/pipproblem1.cc | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/tests/PIP_Problem/pipproblem1.cc b/tests/PIP_Problem/pipproblem1.cc
index 8ab96be..ed1783d 100644
--- a/tests/PIP_Problem/pipproblem1.cc
+++ b/tests/PIP_Problem/pipproblem1.cc
@@ -112,6 +112,10 @@ test02() {
&& c.coefficient(m) == 7
&& c.inhomogeneous_term() == -12))
return false;
+ // Dummy print of (non-root) tree node to increase code coverage.
+ using namespace IO_Operators;
+ nout << "\nPrinting the root's true child subtree:\n";
+ nout << (*t_child) << endl;
}
if (t_child->child_node(true) == 0 || t_child->child_node(false) == 0)
return false;
More information about the PPL-devel
mailing list