Skip to content

Commit 82d6262

Browse files
committed
fix(Test): no more guarantee on colocation issue order
1 parent e1b30fc commit 82d6262

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/inspector/test-surface-colocation.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,16 @@ void check_colocation3D()
139139
OPENGEODE_EXCEPTION( nb_colocated_points == 5,
140140
"[Test] (3D) Surface has wrong number of colocated points." );
141141
const std::vector< geode::index_t > first_colocated_points_group{ 0, 1, 6 };
142+
const std::vector< geode::index_t > second_colocated_points_group{ 3, 5 };
142143
OPENGEODE_EXCEPTION(
143-
colocated_points_groups.issues()[0] == first_colocated_points_group,
144+
colocated_points_groups.issues()[0] == first_colocated_points_group
145+
|| colocated_points_groups.issues()[0]
146+
== second_colocated_points_group,
144147
"[Test] (3D) Surface has wrong first colocated points group." );
145-
const std::vector< geode::index_t > second_colocated_points_group{ 3, 5 };
146148
OPENGEODE_EXCEPTION(
147-
colocated_points_groups.issues()[1] == second_colocated_points_group,
149+
colocated_points_groups.issues()[1] == first_colocated_points_group
150+
|| colocated_points_groups.issues()[1]
151+
== second_colocated_points_group,
148152
"[Test] (3D) Surface has wrong second colocated points group." );
149153
}
150154

0 commit comments

Comments
 (0)