mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-09 23:24:02 +00:00
[test][util][promote integral] add tests for the unsigned types:
unsigned char, unsigned short, unsigned int, unsigned long, std::size_t; add test for the type signed char;
This commit is contained in:
parent
2651afa92b
commit
eb0dfd1b5d
@ -15,6 +15,7 @@
|
||||
#if !defined(BOOST_GEOMETRY_NO_MULTIPRECISION_INTEGER)
|
||||
#include <climits>
|
||||
#endif
|
||||
#include <cstddef>
|
||||
#include <iostream>
|
||||
|
||||
#include <boost/test/included/unit_test.hpp>
|
||||
@ -126,21 +127,31 @@ void test_promotion()
|
||||
BOOST_AUTO_TEST_CASE( test_char )
|
||||
{
|
||||
test_promotion<char>();
|
||||
test_promotion<signed char>();
|
||||
test_promotion<unsigned char>();
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE( test_short )
|
||||
{
|
||||
test_promotion<short>();
|
||||
test_promotion<unsigned short>();
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE( test_int )
|
||||
{
|
||||
test_promotion<int>();
|
||||
test_promotion<unsigned int>();
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE( test_long )
|
||||
{
|
||||
test_promotion<long>();
|
||||
test_promotion<unsigned long>();
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE( test_std_size_t )
|
||||
{
|
||||
test_promotion<std::size_t>();
|
||||
}
|
||||
|
||||
#ifdef BOOST_HAS_LONG_LONG
|
||||
|
Loading…
x
Reference in New Issue
Block a user