PostGIS  3.0.6dev-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 21 of file cu_geos_cluster.c.

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

References lwgeom_same().

Referenced by perform_cluster_intersecting_test(), and perform_cluster_within_distance_test().

Here is the call graph for this function:
Here is the caller graph for this function: