blob: e1c2f822643e657f0bc8283bd582fdf5c3cae9ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <forstio/test/suite.h>
#include "../c++/schema.h"
#include "../c++/schema_hash.h"
namespace {
SAW_TEST("Schema String Hash"){
using namespace saw;
data<schema::String> str{"foo"};
uint64_t hash = schema_hash<schema::String>::apply(0, str);
SAW_EXPECT( hash == 0, std::string{"Hash is "} + std::to_string(hash) +", but should be 0.");
}
}
|