Commit 59d6e03f authored by Pavel Vainerman's avatar Pavel Vainerman Committed by Pavel Vainerman

added 'DefaultObjectId' hash32

# Conflicts: # include/UniSetTypes.h
parent 4808e10c
...@@ -66,6 +66,7 @@ namespace uniset ...@@ -66,6 +66,7 @@ namespace uniset
std::string BadSymbolsToStr(); std::string BadSymbolsToStr();
/* hash32("DefaultObjectId") = 122387491 */
const ObjectId DefaultObjectId = -1; /*!< Идентификатор объекта по умолчанию */ const ObjectId DefaultObjectId = -1; /*!< Идентификатор объекта по умолчанию */
const ThresholdId DefaultThresholdId = -1; /*!< идентификатор порогов по умолчанию */ const ThresholdId DefaultThresholdId = -1; /*!< идентификатор порогов по умолчанию */
const ThresholdId DefaultTimerId = -1; /*!< идентификатор таймера по умолчанию */ const ThresholdId DefaultTimerId = -1; /*!< идентификатор таймера по умолчанию */
......
...@@ -421,6 +421,7 @@ TEST_CASE("UniSetTypes: hash32", "[utypes][hash32]" ) ...@@ -421,6 +421,7 @@ TEST_CASE("UniSetTypes: hash32", "[utypes][hash32]" )
REQUIRE( uniset::hash32("2tset") == uint32_t(1660083104) ); REQUIRE( uniset::hash32("2tset") == uint32_t(1660083104) );
REQUIRE( uniset::hash32("ttt1") != uniset::hash32("1ttt") ); REQUIRE( uniset::hash32("ttt1") != uniset::hash32("1ttt") );
REQUIRE( uniset::hash32("ta") != uniset::hash32("at") ); REQUIRE( uniset::hash32("ta") != uniset::hash32("at") );
REQUIRE( uniset::hash32("DefaultObjectId") == 122387491 );
} }
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
TEST_CASE("UniSetTypes: key", "[utypes][key]" ) TEST_CASE("UniSetTypes: key", "[utypes][key]" )
......
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