Skip to content

Commit 1691615

Browse files
committed
fix bug in test of bus reorder
Signed-off-by: Tony Xiang <[email protected]>
1 parent ebe0692 commit 1691615

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/cpp_unit_tests/test_topology.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,17 @@
6868
*
6969
* Math model after reodering
7070
*
71-
* [4] <---4--[0] <--3- [3]
71+
* [1] <---4--[6] <--3- [2]
7272
* ^ \ ^ / ^
7373
* | 9---- | / |
7474
* 5 \ 6 10 2
7575
* | v | v |
76-
* [2:s0] --0--> [5] --1--> [1]
76+
* [3:s0] --0--> [5] --1--> [4]
7777
* ^ ^ <- 12- ^
7878
* | -11-/ parallel |
7979
* 7 / |
8080
* | / |
81-
* [6] -----------------8--
81+
* [0] -----------------8--
8282
*
8383
* Extra fill-in:
8484
* (3, 4) by removing node 0
@@ -323,7 +323,7 @@ TEST_CASE("Test cycle reorder") {
323323
{5, 1}, // 9
324324
{3, 1}, // 10
325325
{6, 1}, // 11
326-
{6, 5}, // 12
326+
{2, 1}, // 12
327327
};
328328
comp_topo.source_node_idx = {0};
329329
// component connection
@@ -333,7 +333,7 @@ TEST_CASE("Test cycle reorder") {
333333
comp_conn.source_connected = {1};
334334
// result
335335
ComponentToMathCoupling comp_coup_ref{};
336-
comp_coup_ref.node = {{0, 2}, {0, 5}, {0, 1}, {0, 3}, {0, 0}, {0, 4}, {0, 6}};
336+
comp_coup_ref.node = {{0, 3}, {0, 5}, {0, 4}, {0, 2}, {0, 6}, {0, 1}, {0, 0}};
337337

338338
Topology topo{comp_topo, comp_conn};
339339
auto pair = topo.build_topology();

0 commit comments

Comments
 (0)