PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ test_signum_macro()

static void test_signum_macro ( void  )
static

Definition at line 1198 of file cu_gserialized1.c.

1199 {
1200  CU_ASSERT_EQUAL(SIGNUM(-5.0),-1);
1201  CU_ASSERT_EQUAL(SIGNUM( 5.0), 1);
1202  CU_ASSERT_EQUAL(SIGNUM( 0.0), 0);
1203  CU_ASSERT_EQUAL(SIGNUM(10) * 5, 5);
1204  CU_ASSERT_EQUAL(SIGNUM(-10) * 5, -5);
1205 }
#define SIGNUM(n)
Macro that returns: -1 if n < 0, 1 if n > 0, 0 if n == 0.

References SIGNUM.

Referenced by gserialized1_suite_setup().

Here is the caller graph for this function: