[PPL-devel] [GIT] ppl/ppl(master): Added a couple of tests to improve code coverage.
Enea Zaffanella
zaffanella at cs.unipr.it
Tue Feb 16 09:52:48 CET 2010
Module: ppl/ppl
Branch: master
Commit: 22208e21cd868063a06824d0636b158670802b34
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=22208e21cd868063a06824d0636b158670802b34
Author: Enea Zaffanella <zaffanella at cs.unipr.it>
Date: Tue Feb 16 09:51:24 2010 +0100
Added a couple of tests to improve code coverage.
---
tests/PIP_Problem/pipproblem2.cc | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/tests/PIP_Problem/pipproblem2.cc b/tests/PIP_Problem/pipproblem2.cc
index d91696c..d2ebf46 100644
--- a/tests/PIP_Problem/pipproblem2.cc
+++ b/tests/PIP_Problem/pipproblem2.cc
@@ -196,6 +196,30 @@ test10() {
return ok;
}
+bool
+test11() {
+ Variable A(0);
+ Constraint_System cs;
+ cs.insert(A >= 5);
+
+ PIP_Problem pip1(3, cs.begin(), cs.end(), Variables_Set());
+ bool ok = (pip1.solution() != 0);
+
+ return ok;
+}
+
+bool
+test12() {
+ Variable A(0);
+ Constraint_System cs;
+ cs.insert(A >= 5);
+
+ PIP_Problem pip1(3, cs.begin(), cs.end(), Variables_Set());
+ bool ok = (pip1.optimizing_solution() != 0);
+
+ return ok;
+}
+
} // namespace
BEGIN_MAIN
@@ -209,4 +233,6 @@ BEGIN_MAIN
DO_TEST(test08);
DO_TEST(test09);
DO_TEST(test10);
+ DO_TEST(test11);
+ DO_TEST(test12);
END_MAIN
More information about the PPL-devel
mailing list