text: //          Copyright Carl Philipp Reh 2009 - 2016.
  // Distributed under the Boost Software License, Version 1.0.
  //    (See accompanying file LICENSE_1_0.txt or copy at
  //          http://www.boost.org/LICENSE_1_0.txt)
  
  
  #include <fcppt/math/box/comparison.hpp>
  #include <fcppt/math/box/object_impl.hpp>
  #include <fcppt/math/box/output.hpp>
  #include <fcppt/math/box/stretch_absolute.hpp>
  #include <fcppt/preprocessor/disable_gcc_warning.hpp>
  #include <fcppt/preprocessor/pop_warning.hpp>
  #include <fcppt/preprocessor/push_warning.hpp>
  #include <fcppt/config/external_begin.hpp>
  #include <boost/test/unit_test.hpp>
  #include <fcppt/config/external_end.hpp>
  
  
  FCPPT_PP_PUSH_WARNING
  FCPPT_PP_DISABLE_GCC_WARNING(-Weffc++)
  
  BOOST_AUTO_TEST_CASE(
  	math_box_stretch_absolute
  )
  {
  FCPPT_PP_POP_WARNING
  
  	typedef
  	fcppt::math::box::object<
  		int,
  		2
  	>
  	signed_box_type;
  
  	signed_box_type const b(
  		signed_box_type::vector(
  			10,
  			12
  		),
  		signed_box_type::dim(
  			24,
  			26
  		)
  	);
  
  	BOOST_CHECK_EQUAL(
  		fcppt::math::box::stretch_absolute(
  			b,
  			signed_box_type::vector(
  				2,
  				5
  			)
  		),
  		signed_box_type(
  			signed_box_type::vector(
  				8,
  				7
  			),
  			signed_box_type::dim(
  				28,
  				36
  			)
  		)
  	);
  }
  