Commit 6f13253b authored by Pavel Vainerman's avatar Pavel Vainerman Committed by Pavel Vainerman

(key): fix tests

parent 59d6e03f
......@@ -426,9 +426,12 @@ TEST_CASE("UniSetTypes: hash32", "[utypes][hash32]" )
// -----------------------------------------------------------------------------
TEST_CASE("UniSetTypes: key", "[utypes][key]" )
{
REQUIRE( uniset::key(100,100) == uint64_t(12423972911335977860) );
REQUIRE( uniset::key(100,100) == uint64_t(12423972911335977860) );
REQUIRE( uniset::key(1e14,1e16) == uint64_t(13802851885616383566) );
REQUIRE( uniset::key(101,100) == uint64_t(793928870581810946) );
REQUIRE( uniset::key(100, 100) == uint64_t(12423972911335977860) );
REQUIRE( uniset::key(101, 100) == uint64_t(793928870581810946) );
REQUIRE( uniset::key(100, 101) == uint64_t(2907929044583608809) );
// max int
REQUIRE( uniset::key(2147483647, 2147483647) == uint64_t(13802851885616383566) );
REQUIRE( uniset::key(2147483647, 2147483646) == uint64_t(826978890373207942) );
REQUIRE( uniset::key(2147483646, 2147483647) == uint64_t(18348137753129063869) );
}
// -----------------------------------------------------------------------------
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment