Revert "Update (uint128)-1 test"

This reverts commit cab5c6c8d7.
This commit is contained in:
Peter Dimov
2021-10-18 03:00:17 +03:00
parent 7abcf22762
commit 9e938aca41

View File

@@ -124,9 +124,15 @@ int main()
BOOST_TEST_EQ( hv((uint128)1), 1 );
BOOST_TEST_EQ( hv((uint128)65535), 65535 );
// (uint128)-1 does the former under gcc 9 and below, the latter under gcc 10+
BOOST_TEST_EQ( hv((uint128)(unsigned long long)-1), 18446744073709551615ULL );
BOOST_TEST_EQ( hv(~(uint128)0), 13835058055282163777ULL );
#if defined(BOOST_GCC) && BOOST_GCC < 100000
BOOST_TEST_EQ( hv((uint128)-1), 18446744073709551615ULL );
#else
BOOST_TEST_EQ( hv((uint128)-1), 13835058055282163777ULL );
#endif
#endif