Skip to content

Commit

Permalink
🐍 small change.
Browse files Browse the repository at this point in the history
  • Loading branch information
Drewniok committed Oct 18, 2024
1 parent 0f7efca commit d543de4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/algorithms/simulation/sidb/detect_bdl_wires.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ TEST_CASE("Output BDL wire from west to east", "[detect-bdl-wires]")
REQUIRE(output_bdl_wire.first_bdl_pair_wire.has_value());
REQUIRE(output_bdl_wire.last_bdl_pair_wire.has_value());
CHECK(output_bdl_wire.first_bdl_pair_wire.value() ==
bdl_pair{sidb_technology::cell_type::INPUT, cell<decltype(lyt)>{0, 0, 0}, cell<decltype(lyt)>{2, 0, 0}});
bdl_pair{sidb_technology::cell_type::NORMAL, cell<decltype(lyt)>{0, 0, 0}, cell<decltype(lyt)>{2, 0, 0}});
CHECK(output_bdl_wire.last_bdl_pair_wire.value() ==
bdl_pair{sidb_technology::cell_type::OUTPUT, cell<decltype(lyt)>{18, 0, 0}, cell<decltype(lyt)>{20, 0, 0}});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ TEST_CASE("Determine the probability of fabricating an operational BDL, offset c
stats.num_non_operational_sidb_displacements),
Catch::Matchers::WithinAbs(result, physical_constants::POP_STABILITY_ERR));

CHECK_THAT(result, Catch::Matchers::WithinAbs(0.421875, physical_constants::POP_STABILITY_ERR));
CHECK_THAT(result, Catch::Matchers::WithinAbs(0.63671, physical_constants::POP_STABILITY_ERR));

const auto result_20_percent_error = determine_probability_of_fabricating_operational_gate(
lyt_offset, std::vector<tt>{create_id_tt()}, params, 0.2);
Expand Down

0 comments on commit d543de4

Please sign in to comment.