Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Sep 25, 2024
1 parent d8f5c1b commit d5d75b2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tools/netlist/tests/PathTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ endmodule
// Tests for conditional variables in procedural blocks (Not supported!)
//===---------------------------------------------------------------------===//

TEST_CASE("Mux") {
TEST_CASE("Mux") {
// Test that the variable in a conditional block is correctly added as a
// dependency on the output variable controlled by that block.
auto tree = SyntaxTree::fromText(R"(
Expand All @@ -334,7 +334,7 @@ endmodule
CHECK(pathFinder.find(*netlist.lookupPort("mux.sel"), *netlist.lookupPort("mux.f")).empty());
}

TEST_CASE("Nested muxing") {
TEST_CASE("Nested muxing") {
// Test that the variables in multiple nested levels of conditions are
// correctly added as dependencies of the output variable.
auto tree = SyntaxTree::fromText(R"(
Expand All @@ -359,10 +359,8 @@ endmodule
auto netlist = createNetlist(compilation);
PathFinder pathFinder(netlist);
// Paths do not exist!
CHECK(pathFinder.find(*netlist.lookupPort("mux.sel_a"),
*netlist.lookupPort("mux.f")).empty());
CHECK(pathFinder.find(*netlist.lookupPort("mux.sel_b"),
*netlist.lookupPort("mux.f")).empty());
CHECK(pathFinder.find(*netlist.lookupPort("mux.sel_a"), *netlist.lookupPort("mux.f")).empty());
CHECK(pathFinder.find(*netlist.lookupPort("mux.sel_b"), *netlist.lookupPort("mux.f")).empty());
}

//===---------------------------------------------------------------------===//
Expand Down

0 comments on commit d5d75b2

Please sign in to comment.