Skip to content

Commit

Permalink
Update cpp test
Browse files Browse the repository at this point in the history
  • Loading branch information
Heidi Tong committed Jun 7, 2021
1 parent 7ba0d17 commit d3c7f44
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions testscpp/tests/test_roof_duality.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ TEST_CASE("Tests for fixQuboVariables", "[roofduality]") {
int num_vars = 3;
auto bqm = dimod::AdjVectorBQM<int, float>(Q, num_vars);

auto result = fixQuboVariables(bqm, true, -2);
auto bqm_offset = -5;
auto result = fixQuboVariables(bqm, true, bqm_offset);
auto lower_bound = result.first;
REQUIRE(lower_bound == -4);
REQUIRE(lower_bound == (-2 + bqm_offset));
}

SECTION("Test empty case") {
Expand Down

0 comments on commit d3c7f44

Please sign in to comment.