store: Truth table test structure for strat gameplay

This commit is contained in:
Cal Corum 2026-02-16 10:42:23 -06:00
parent fa776218eb
commit 6d60ea337b

View File

@ -0,0 +1,12 @@
---
id: a015f3c8-4799-46a2-8a81-c90041c87ff3
type: code_pattern
title: "Truth table test structure for strat gameplay"
tags: [strat-gameplay-webapp, python, testing, truth-tables]
importance: 0.6
confidence: 0.8
created: "2026-02-16T16:42:23.116286+00:00"
updated: "2026-02-16T16:42:23.116286+00:00"
---
Truth table tests live in backend/tests/unit/core/truth_tables/. Shared conftest.py with make_state(), resolve_simple(), resolve_with_location(), assert_play_result(). assert_play_result() filters hold movements (from_base == to_base) since groundball code emits these. Files: test_tt_hits.py, test_tt_walks.py, test_tt_simple_outs.py, test_tt_groundballs.py, test_tt_uncapped_hits.py. TODO: test_tt_flyballs.py, test_tt_xcheck_ground.py, test_tt_xcheck_fly.py. As of 2026-02-11: 2481 unit tests passing.