MCPcopy Create free account
hub / github.com/EndstoneMC/endstone / TEST

Function TEST

tests/bedrock/test_hashed_string.cpp:19–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17#include "bedrock/core/string/string_hash.h"
18
19TEST(HashedStringTest, ComputerHash)
20{
21 ASSERT_EQ(HashedString::computeHash("minecraft:air"), 0xBD584BAF00003448);
22 ASSERT_EQ(HashedString::computeHash("minecraft:player.exhaustion"), 0x8afb6992bde84d57);
23 ASSERT_EQ(HashedString::computeHash("minecraft:player.experience"), 0xd5c6a6b9319a39cb);
24 ASSERT_EQ(HashedString::computeHash("minecraft:player.hunger"), 0x3c90c06ed4382c12);
25 ASSERT_EQ(HashedString::computeHash("minecraft:player.level"), 0x82284d95df87fac7);
26 ASSERT_EQ(HashedString::computeHash("minecraft:player.saturation"), 0x5185acc9f6e9a50b);
27}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected