summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2024-01-16 13:00:25 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2024-01-16 13:00:25 +0100
commitca5063213282287061184263ce7e08d10f60dce9 (patch)
treec93960ca0e12ab17faa5d9f2516d8deb58c60309
parente4ea59e05e6ca870a05f731d42efdcdc3f595055 (diff)
codec: Schema set expected hash.
-rw-r--r--modules/codec/tests/schema.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/codec/tests/schema.cpp b/modules/codec/tests/schema.cpp
index e1c2f82..df90eb1 100644
--- a/modules/codec/tests/schema.cpp
+++ b/modules/codec/tests/schema.cpp
@@ -7,7 +7,8 @@ SAW_TEST("Schema String Hash"){
using namespace saw;
data<schema::String> str{"foo"};
uint64_t hash = schema_hash<schema::String>::apply(0, str);
+ uint64_t expected_hash = 1524024712123765130u;
- SAW_EXPECT( hash == 0, std::string{"Hash is "} + std::to_string(hash) +", but should be 0.");
+ SAW_EXPECT( hash == expected_hash, std::string{"Hash is "} + std::to_string(hash) +", but should be 0.");
}
}