Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / gil / test / extension / toolbox / pixel_bit_size.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.hpp>
9 #include <boost/gil/extension/toolbox/metafunctions/pixel_bit_size.hpp>
10
11 #include <boost/test/unit_test.hpp>
12
13 using namespace boost;
14 using namespace gil;
15
16 BOOST_AUTO_TEST_SUITE( toolbox_tests )
17
18 BOOST_AUTO_TEST_CASE( pixel_bit_size_test )
19 {
20     using image_t = bit_aligned_image5_type
21         <
22             16, 16, 16, 8, 8, devicen_layout_t<5>
23         >::type;
24     static_assert(pixel_bit_size<image_t::view_t::reference>::value == 64, "");
25 }
26
27 BOOST_AUTO_TEST_SUITE_END()