skip to content
==> tests/constants.c <==
1/* Every constant of @ajax/mesh-abi-group-state equals the Rust's (values printed by the Rust itself), and the
2 * Rust const asserts that need a function call hold. Generated from alpha-rust-mesh. */
3#include "mesh/abi/group_state.h"
4#include "mesh/check.h"
5
6#include <stdint.h>
7#include <string.h>
8
9int main(void) {
10    CHECK_U(MESH_GL_NONE, UINT64_C(0));
11    CHECK_U(MESH_GL_PAUSED, UINT64_C(1));
12    CHECK_U(MESH_GL_HELLO, UINT64_C(2));
13    CHECK_U(MESH_GL_RUNNING, UINT64_C(3));
14    CHECK_U(MESH_GL_NAMES_LEN, 4);
15    CHECK_S(MESH_GL_NAMES[0], "-");
16    CHECK_S(MESH_GL_NAMES[1], "paused");
17    CHECK_S(MESH_GL_NAMES[2], "hello");
18    CHECK_S(MESH_GL_NAMES[3], "running");
19    return mesh_check_done();
20}