PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ test_signum_macro()

void test_signum_macro ( void  )

Definition at line 1226 of file cu_libgeom.c.

1227 {
1228  CU_ASSERT_EQUAL(SIGNUM(-5.0),-1);
1229  CU_ASSERT_EQUAL(SIGNUM( 5.0), 1);
1230  CU_ASSERT_EQUAL(SIGNUM( 0.0), 0);
1231  CU_ASSERT_EQUAL(SIGNUM(10) * 5, 5);
1232  CU_ASSERT_EQUAL(SIGNUM(-10) * 5, -5);
1233 }
#define SIGNUM(n)
Macro that returns: -1 if n < 0, 1 if n > 0, 0 if n == 0.

References SIGNUM.

Referenced by libgeom_suite_setup().

Here is the caller graph for this function: