Files
kinect/tests/test_core.cpp
T
kinect-botandsisyphus-dev-ai b38c7bcd82
ci / Linux C++ core (cmake + ctest) (push) Canceled after 0s
ci / Python tracker (pytest) (push) Canceled after 0s
chore(scaffold): project layout, cross-platform build, CI
Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
2026-11-25 03:23:45 -05:00

16 lines
607 B
C++

#include <gtest/gtest.h>
#include "contract/contract.h"
#include "mapping/mapping.h"
#include "synth/synth.h"
// Scaffold smoke test: proves libnui_core compiles, links, and its placeholder
// symbols are callable. Real per-module suites replace/extend this in todos 2/6/7.
TEST(ScaffoldSmoke, CoreSymbolsLinkAndReturnPlaceholders) {
EXPECT_EQ(nui::contract::contract_version(), 0);
EXPECT_EQ(nui::mapping::kinect_joint_count(), 20);
// Depth packing layout sanity: 1000mm, player 1 -> (1000<<3)|1.
EXPECT_EQ(nui::synth::pack_depth(1000, 1),
static_cast<uint16_t>((1000 << 3) | 1));
}