Imported Upstream version 1.71.0
[platform/upstream/boost.git] / libs / gil / toolbox / test / gray_alpha.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/gray_alpha.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( gray_alpha_test )
19 {
20     {
21         gray_alpha8_pixel_t a( 10, 20 );
22         gray8_pixel_t  b;
23
24         color_convert( a, b );
25     }
26
27     {
28         gray_alpha8_pixel_t a( 10, 20 );
29         rgb8_pixel_t  b;
30         gray_alpha8_pixel_t c;
31
32         color_convert( a, b );
33     }
34
35     {
36         gray_alpha8_pixel_t a( 10, 20 );
37         rgba8_pixel_t  b;
38         gray_alpha8_pixel_t c;
39
40         color_convert( a, b );
41     }
42 }
43
44 BOOST_AUTO_TEST_SUITE_END()