claude-memory/graph/code-patterns/truth-table-test-structure-for-strat-gameplay-a015f3.md

810 B

id type title tags importance confidence created updated
a015f3c8-4799-46a2-8a81-c90041c87ff3 code_pattern Truth table test structure for strat gameplay
strat-gameplay-webapp
python
testing
truth-tables
0.6 0.8 2026-02-16T16:42:23.116286+00:00 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.