==> tests/golden.c <==1/* @ajax/mesh-abi-fnv's functions against vectors the Rust computed (alpha-rust-mesh, the same inputs). */
2#include "mesh/abi/fnv.h"
3#include "mesh/check.h"
4
5#include <stdint.h>
6
7int main(void) {
8 CHECK_U(mesh_fnv1a64((const uint8_t *)"", 0), UINT64_C(14695981039346656037));
9 CHECK_U(mesh_fnv1a64((const uint8_t *)"a", 1), UINT64_C(12638187200555641996));
10 CHECK_U(mesh_fnv1a64((const uint8_t *)"foobar", 6), UINT64_C(9625390261332436968));
11 CHECK_U(mesh_fnv1a64((const uint8_t *)"mesh_main", 9), UINT64_C(1441023799754377036));
12 CHECK_U(mesh_fnv1a64((const uint8_t *)"hello", 5), UINT64_C(11831194018420276491));
13 CHECK_U(mesh_fnv1a64((const uint8_t *)"pipehash", 8), UINT64_C(11885407170553203205));
14 return mesh_check_done();
15}