PostGIS  2.3.7dev-r@@SVN_REVISION@@
void test_signum_macro ( void  )

Definition at line 1202 of file cu_libgeom.c.

References SIGNUM.

Referenced by libgeom_suite_setup().

1203 {
1204  CU_ASSERT_EQUAL(SIGNUM(-5.0),-1);
1205  CU_ASSERT_EQUAL(SIGNUM( 5.0), 1);
1206  CU_ASSERT_EQUAL(SIGNUM( 0.0), 0);
1207  CU_ASSERT_EQUAL(SIGNUM(10) * 5, 5);
1208  CU_ASSERT_EQUAL(SIGNUM(-10) * 5, -5);
1209 }
#define SIGNUM(n)
Macro that returns: -1 if n < 0, 1 if n > 0, 0 if n == 0.

Here is the caller graph for this function: