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

13 lines
810 B
Markdown

---
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.