PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ test_pixtype_index_from_name()

static void test_pixtype_index_from_name ( )
static

Definition at line 63 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_index_from_name().

Referenced by pixtype_suite_setup().

63  {
64  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("1BB"), PT_1BB);
65  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("2BUI"), PT_2BUI);
66  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("4BUI"), PT_4BUI);
67  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("8BUI"), PT_8BUI);
68  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("8BSI"), PT_8BSI);
69  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("16BUI"), PT_16BUI);
70  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("16BSI"), PT_16BSI);
71  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("32BUI"), PT_32BUI);
72  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("32BSI"), PT_32BSI);
73  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("32BF"), PT_32BF);
74  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("64BF"), PT_64BF);
75 
76  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("END"), PT_END);
77  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("1bb"), PT_END);
78  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("1bB"), PT_END);
79  CU_ASSERT_EQUAL(rt_pixtype_index_from_name("3BUI"), PT_END);
80 }
rt_pixtype rt_pixtype_index_from_name(const char *pixname)
Definition: rt_pixel.c:80
Here is the call graph for this function:
Here is the caller graph for this function: