Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
20 lines
691 B
Python
20 lines
691 B
Python
"""Scaffold smoke test for the Python side of the project.
|
|
|
|
Proves pytest collects and runs at least one passing test. The real tracker suite
|
|
(MediaPipe pose/segmentation -> IPC) arrives in plan todo 5.
|
|
"""
|
|
|
|
|
|
def test_scaffold_collects_and_passes():
|
|
assert True
|
|
|
|
|
|
def test_depth_packing_matches_core_layout():
|
|
# Mirror of nui::synth::pack_depth so the Python tracker and C++ core agree on the
|
|
# Kinect v1 depth word layout. The frozen contract (todo 2) replaces this with a
|
|
# generated mirror of the C header.
|
|
def pack_depth(depth_mm: int, player: int) -> int:
|
|
return ((depth_mm & 0x1FFF) << 3) | (player & 0x7)
|
|
|
|
assert pack_depth(1000, 1) == (1000 << 3) | 1
|