Imported Upstream version 1.71.0
[platform/upstream/boost.git] / libs / gil / toolbox / test / cmyka.cpp
1 //
2 // Copyright 2013 Christian Henning
3 //
4 // Distributed under the Boost Software License, Version 1.0
5 // See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt
7 //
8 #include <boost/gil/extension/toolbox/color_spaces/cmyka.hpp>
9
10 #include <boost/test/unit_test.hpp>
11 #include <boost/type_traits/is_same.hpp>
12
13 using namespace boost;
14 using namespace gil;
15
16 BOOST_AUTO_TEST_SUITE( toolbox_tests )
17
18 BOOST_AUTO_TEST_CASE( cmyka_test )
19 {
20     cmyka8_pixel_t a( 10, 20, 30, 40, 50 );
21     rgba8_pixel_t  b;
22     cmyka8_pixel_t c;
23
24     color_convert( a, b );
25
26     // no rgba to cmyka conversion implemented
27     //color_convert( b, c );
28     //BOOST_ASSERT( at_c<0>(a) == at_c<0>(c) );
29 }
30
31 BOOST_AUTO_TEST_SUITE_END()