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

Definition at line 1086 of file cu_libgeom.c.

References SIGNUM.

Referenced by libgeom_suite_setup().

1087 {
1088  CU_ASSERT_EQUAL(SIGNUM(-5.0),-1);
1089  CU_ASSERT_EQUAL(SIGNUM( 5.0), 1);
1090  CU_ASSERT_EQUAL(SIGNUM( 0.0), 0);
1091  CU_ASSERT_EQUAL(SIGNUM(10) * 5, 5);
1092  CU_ASSERT_EQUAL(SIGNUM(-10) * 5, -5);
1093 }
#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: