PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ test_signum_macro()

void test_signum_macro ( void  )

Definition at line 1206 of file cu_libgeom.c.

References libgeom_suite_setup(), and SIGNUM.

Referenced by libgeom_suite_setup(), and test_gserialized_peek_gbox_p_fails_for_unsupported_cases().

1207 {
1208  CU_ASSERT_EQUAL(SIGNUM(-5.0),-1);
1209  CU_ASSERT_EQUAL(SIGNUM( 5.0), 1);
1210  CU_ASSERT_EQUAL(SIGNUM( 0.0), 0);
1211  CU_ASSERT_EQUAL(SIGNUM(10) * 5, 5);
1212  CU_ASSERT_EQUAL(SIGNUM(-10) * 5, -5);
1213 }
#define SIGNUM(n)
Macro that returns: -1 if n < 0, 1 if n > 0, 0 if n == 0.
Here is the call graph for this function:
Here is the caller graph for this function: