[GIT] ppl/ppl(pip): Test test10() in pipproblem2. cc seems to show another bug.

Module: ppl/ppl Branch: pip Commit: 05f65d328f6e2e1a0b9819f84fbe966e4a516002 URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=05f65d328f6e2...
Author: Enea Zaffanella zaffanella@cs.unipr.it Date: Thu Nov 26 14:42:56 2009 +0100
Test test10() in pipproblem2.cc seems to show another bug.
---
tests/PIP_Problem/pipproblem2.cc | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/tests/PIP_Problem/pipproblem2.cc b/tests/PIP_Problem/pipproblem2.cc index 51e21e1..590f672 100644 --- a/tests/PIP_Problem/pipproblem2.cc +++ b/tests/PIP_Problem/pipproblem2.cc @@ -184,6 +184,18 @@ test09() { return ok; }
+bool +test10() { + Variable A(0); + Constraint_System cs; + cs.insert(A >= 5); + + PIP_Problem pip1(3, cs.begin(), cs.end(), Variables_Set()); + bool ok = (pip1.solve() == OPTIMIZED_PIP_PROBLEM); + + return ok; +} + } // namespace
BEGIN_MAIN @@ -196,4 +208,5 @@ BEGIN_MAIN DO_TEST(test07); DO_TEST(test08); DO_TEST(test09); + DO_TEST(test10); END_MAIN
participants (1)
-
Enea Zaffanella