PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ test_pixtype_name()

static void test_pixtype_name ( )
static

Definition at line 47 of file cu_pixtype.c.

References PT_16BSI, PT_16BUI, PT_1BB, PT_2BUI, PT_32BF, PT_32BSI, PT_32BUI, PT_4BUI, PT_64BF, PT_8BSI, PT_8BUI, PT_END, and rt_pixtype_name().

Referenced by pixtype_suite_setup().

47  {
48  CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_1BB), "1BB");
49  CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_2BUI), "2BUI");
50  CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_4BUI), "4BUI");
51  CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_8BUI), "8BUI");
52  CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_8BSI), "8BSI");
53  CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_16BUI), "16BUI");
54  CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_16BSI), "16BSI");
55  CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_32BUI), "32BUI");
56  CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_32BSI), "32BSI");
57  CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_32BF), "32BF");
58  CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_64BF), "64BF");
59 
60  CU_ASSERT_STRING_EQUAL(rt_pixtype_name(PT_END), "Unknown");
61 }
const char * rt_pixtype_name(rt_pixtype pixtype)
Definition: rt_pixel.c:110
Here is the call graph for this function:
Here is the caller graph for this function: