[PPL-devel] [GIT] ppl/ppl(floating_point): Coverage of 100% reached for refine_with_linear_form_inequality.
Roberto Amadini
r.amadini at virgilio.it
Fri Sep 18 10:43:55 CEST 2009
Module: ppl/ppl
Branch: floating_point
Commit: 876484912959e603f7e8406a16453b63a39004e9
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=876484912959e603f7e8406a16453b63a39004e9
Author: Roberto Amadini <r.amadini at virgilio.it>
Date: Fri Sep 18 10:41:44 2009 +0200
Coverage of 100% reached for refine_with_linear_form_inequality.
---
tests/Floating_Point_Expression/refinelf1.cc | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/tests/Floating_Point_Expression/refinelf1.cc b/tests/Floating_Point_Expression/refinelf1.cc
index 235a4d6..8f25961 100644
--- a/tests/Floating_Point_Expression/refinelf1.cc
+++ b/tests/Floating_Point_Expression/refinelf1.cc
@@ -323,6 +323,7 @@ test08() {
}
// tests [0.25, 0.5] * A + [-2, -1] * B <= [-7, -2]
+// and [-7, -2] <= [0.25, 0.5] * A + [-2, -1] * B
bool
test09() {
Variable A(0);
@@ -352,7 +353,7 @@ test09() {
known_result.add_constraint(2*A <= 7);
print_constraints(known_result, "*** known_result ***");
- bool ok = (oc1 == known_result);
+ bool ok1 = (oc1 == known_result);
oc1.refine_with_linear_form_inequality(l2, l1);
print_constraints(oc1, "*** [-7, -2] <= [0.25, 0.5]*A + [-2, -1]*B ***");
@@ -362,8 +363,6 @@ test09() {
bool ok2 = (oc1 == known_result);
return ok1 && ok2;
-
- return ok;
}
// tests [-5, -1] * A <= [2, 3] * B + [0.5, 1]
More information about the PPL-devel
mailing list