From f335c9ca544849c1a51b0edc98906cb6317b59c7 Mon Sep 17 00:00:00 2001 From: Xian Date: Thu, 12 Sep 2024 09:13:36 +0200 Subject: [PATCH] Fix unit test --- src/unittest/snarl_distance_index.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unittest/snarl_distance_index.cpp b/src/unittest/snarl_distance_index.cpp index ca30acb651..fc7b808bd3 100644 --- a/src/unittest/snarl_distance_index.cpp +++ b/src/unittest/snarl_distance_index.cpp @@ -6906,7 +6906,7 @@ namespace vg { SECTION("Traversal of chain") { net_handle_t chain1_6 = distance_index.get_parent(distance_index.get_node_net_handle(n1->id())); distance_index.for_each_child(chain1_6, [&](const net_handle_t& child) { - assert(distance_index.get_parent(child) == chain1_6); + assert(distance_index.canonical(distance_index.get_parent(child)) == distance_index.canonical(chain1_6)); }); } SECTION("Minimum distances are correct") {