Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / gil / test / extension / toolbox / 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
12 using namespace boost;
13 using namespace gil;
14
15 BOOST_AUTO_TEST_SUITE( toolbox_tests )
16
17 BOOST_AUTO_TEST_CASE( gray_alpha_test )
18 {
19     {
20         gray_alpha8_pixel_t a( 10, 20 );
21         gray8_pixel_t  b;
22
23         color_convert( a, b );
24     }
25
26     {
27         gray_alpha8_pixel_t a( 10, 20 );
28         rgb8_pixel_t  b;
29         gray_alpha8_pixel_t c;
30
31         color_convert( a, b );
32     }
33
34     {
35         gray_alpha8_pixel_t a( 10, 20 );
36         rgba8_pixel_t  b;
37         gray_alpha8_pixel_t c;
38
39         color_convert( a, b );
40     }
41 }
42
43 BOOST_AUTO_TEST_SUITE_END()