skip to content
==> tests/golden.c <==
1/* @ajax/mesh-abi-placement's functions against vectors the Rust computed (alpha-rust-mesh, the same inputs). */
2#include "mesh/abi/placement.h"
3#include "mesh/check.h"
4
5#include <stdint.h>
6
7int main(void) {
8    CHECK_U(mesh_show_bytes(0), 256u);
9    CHECK_U(mesh_show_bytes(1), 258u);
10    CHECK_U(mesh_show_bytes(512), 1280u);
11    CHECK_U(mesh_show_bytes(1600), 3456u);
12    CHECK_U(mesh_show_bytes(65535), 131326u);
13    return mesh_check_done();
14}