PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ assert_all_results_found()

static void assert_all_results_found ( LWGEOM **  results,
size_t  num_outputs,
LWGEOM **  expected,
size_t  num_expected_outputs 
)
static

Definition at line 19 of file cu_geos_cluster.c.

References lwgeom_same().

Referenced by perform_cluster_intersecting_test(), and perform_cluster_within_distance_test().

20 {
21  size_t i, j;
22 
23  char found_equal = 0;
24  for (i = 0; i < num_outputs; i++)
25  {
26  for (j = 0; j < num_expected_outputs; j++)
27  {
28  if (lwgeom_same(results[i], expected[j]))
29  {
30  found_equal = 1;
31  break;
32  }
33  }
34 
35  CU_ASSERT_TRUE(found_equal);
36  }
37 }
char lwgeom_same(const LWGEOM *lwgeom1, const LWGEOM *lwgeom2)
geom1 same as geom2 iff
Definition: lwgeom.c:544
Here is the call graph for this function:
Here is the caller graph for this function: