Skip to content

Commit

Permalink
🐛 fix bugs that occurred during merging.
Browse files Browse the repository at this point in the history
  • Loading branch information
Drewniok committed Jan 14, 2025
1 parent 8880a94 commit 837b8ee
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/algorithms/simulation/sidb/operational_domain_ratio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@ TEST_CASE("Bestagon AND gate", "[compute-operational-ratio]")
op_domain_params.sweep_dimensions.push_back(z_dimension);
op_domain_params.operational_params.op_condition = is_operational_params::operational_condition::REJECT_KINKS;

const compute_operational_ratio_params op_ratio_params{op_domain_params};
const operational_domain_ratio_params op_ratio_params{op_domain_params};

const auto op_domain_ratio = compute_operational_ratio(lyt, std::vector<tt>{create_and_tt()},
parameter_point({5.6, 5.0, -0.32}), op_ratio_params);
const auto op_domain_ratio = operational_domain_ratio(lyt, std::vector<tt>{create_and_tt()},
parameter_point({5.6, 5.0, -0.32}), op_ratio_params);

// check if the operational domain has the correct size
CHECK_THAT(op_domain_ratio - (23.0 / 121.0),
Expand All @@ -205,10 +205,10 @@ TEST_CASE("Bestagon AND gate", "[compute-operational-ratio]")
op_domain_params.operational_params.strategy_to_analyze_operational_status =
is_operational_params::operational_analysis_strategy::FILTER_ONLY;

const compute_operational_ratio_params op_ratio_params{op_domain_params};
const operational_domain_ratio_params op_ratio_params{op_domain_params};

const auto op_domain_ratio = compute_operational_ratio(lyt, std::vector<tt>{create_and_tt()},
parameter_point({5.6, 5.0, -0.32}), op_ratio_params);
const auto op_domain_ratio = operational_domain_ratio(lyt, std::vector<tt>{create_and_tt()},
parameter_point({5.6, 5.0, -0.32}), op_ratio_params);

// check if the operational domain has the correct size
CHECK(op_domain_ratio >= (23.0 / 121.0));
Expand Down

0 comments on commit 837b8ee

Please sign in to comment.