@@ -79,12 +79,16 @@ void check_colocation2D()
7979 OPENGEODE_EXCEPTION ( nb_colocated_points == 5 ,
8080 " [Test] EdgedCurve has wrong number of colocated points." );
8181 const std::vector< geode::index_t > first_colocated_points_group{ 0 , 1 , 6 };
82+ const std::vector< geode::index_t > second_colocated_points_group{ 3 , 5 };
8283 OPENGEODE_EXCEPTION (
83- colocated_points_groups.issues ()[0 ] == first_colocated_points_group,
84+ colocated_points_groups.issues ()[0 ] == first_colocated_points_group
85+ || colocated_points_groups.issues ()[0 ]
86+ == second_colocated_points_group,
8487 " [Test] EdgedCurve has wrong first colocated points group." );
85- const std::vector< geode::index_t > second_colocated_points_group{ 3 , 5 };
8688 OPENGEODE_EXCEPTION (
87- colocated_points_groups.issues ()[1 ] == second_colocated_points_group,
89+ colocated_points_groups.issues ()[1 ] == second_colocated_points_group
90+ || colocated_points_groups.issues ()[1 ]
91+ == first_colocated_points_group,
8892 " [Test] EdgedCurve has wrong second colocated points group." );
8993}
9094
@@ -139,12 +143,16 @@ void check_colocation3D()
139143 OPENGEODE_EXCEPTION ( nb_colocated_points == 5 ,
140144 " [Test] (3D) EdgedCurve has wrong number of colocated points." );
141145 const std::vector< geode::index_t > first_colocated_points_group{ 0 , 1 , 6 };
146+ const std::vector< geode::index_t > second_colocated_points_group{ 3 , 5 };
142147 OPENGEODE_EXCEPTION (
143- colocated_points_groups.issues ()[0 ] == first_colocated_points_group,
148+ colocated_points_groups.issues ()[0 ] == first_colocated_points_group
149+ || colocated_points_groups.issues ()[0 ]
150+ == second_colocated_points_group,
144151 " [Test] (3D) EdgedCurve has wrong first colocated points group." );
145- const std::vector< geode::index_t > second_colocated_points_group{ 3 , 5 };
146152 OPENGEODE_EXCEPTION (
147- colocated_points_groups.issues ()[1 ] == second_colocated_points_group,
153+ colocated_points_groups.issues ()[1 ] == first_colocated_points_group
154+ || colocated_points_groups.issues ()[1 ]
155+ == second_colocated_points_group,
148156 " [Test] (3D) EdgedCurve has wrong second colocated points group." );
149157}
150158
0 commit comments