From 6d60ea337b757a1d875d4325683d741508d2fee1 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Mon, 16 Feb 2026 10:42:23 -0600 Subject: [PATCH] store: Truth table test structure for strat gameplay --- ...table-test-structure-for-strat-gameplay-a015f3.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 graph/code-patterns/truth-table-test-structure-for-strat-gameplay-a015f3.md diff --git a/graph/code-patterns/truth-table-test-structure-for-strat-gameplay-a015f3.md b/graph/code-patterns/truth-table-test-structure-for-strat-gameplay-a015f3.md new file mode 100644 index 00000000000..05b1c2aeedf --- /dev/null +++ b/graph/code-patterns/truth-table-test-structure-for-strat-gameplay-a015f3.md @@ -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.