mirror of
https://github.com/boostorg/core.git
synced 2025-07-30 04:47:24 +02:00
Add missing unsigned short tests to bit_rotate_test
This commit is contained in:
@ -133,6 +133,12 @@ int main()
|
|||||||
BOOST_TEST_EQ( +boost::core::rotr( x, i ), +x );
|
BOOST_TEST_EQ( +boost::core::rotr( x, i ), +x );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
unsigned short x = 0;
|
||||||
|
BOOST_TEST_EQ( boost::core::rotl( x, i ), x );
|
||||||
|
BOOST_TEST_EQ( boost::core::rotr( x, i ), x );
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
unsigned int x = 0;
|
unsigned int x = 0;
|
||||||
BOOST_TEST_EQ( boost::core::rotl( x, i ), x );
|
BOOST_TEST_EQ( boost::core::rotl( x, i ), x );
|
||||||
@ -159,6 +165,7 @@ int main()
|
|||||||
boost::uint64_t x = rng();
|
boost::uint64_t x = rng();
|
||||||
|
|
||||||
test_rotate( static_cast<unsigned char>( x ) );
|
test_rotate( static_cast<unsigned char>( x ) );
|
||||||
|
test_rotate( static_cast<unsigned short>( x ) );
|
||||||
test_rotate( static_cast<unsigned int>( x ) );
|
test_rotate( static_cast<unsigned int>( x ) );
|
||||||
test_rotate( static_cast<unsigned long>( x ) );
|
test_rotate( static_cast<unsigned long>( x ) );
|
||||||
test_rotate( static_cast<unsigned long long>( x ) );
|
test_rotate( static_cast<unsigned long long>( x ) );
|
||||||
|
Reference in New Issue
Block a user