Modern UI contract: squad read and contract tests

The squad read lists a squad (own club, any league club or a national team
with a nominated squad) with ids, positions, values, absences and, for the
manager's own club, monthly salary and remaining contract months.
modern_ui_contract_tests checks envelope, identities, money, errors and
that reads leave the state unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-10-27 08:19:55 +01:00
1 parent 3336d01004
commit fec4c6c7e7
5 files changed
+207 -2

No files matched your search

+8
View File
@@ -665,6 +665,14 @@ target_link_libraries(season_sim PRIVATE bmhui)
if(MSVC)
target_compile_options(season_sim PRIVATE /utf-8)
endif()
# The engine side of the Modern interface contract (docs/new_engine/ui-anbindung.md).
add_executable(modern_ui_contract_tests tests/modern_ui_contract_tests.cpp)
target_link_libraries(modern_ui_contract_tests PRIVATE bmh_modern_session)
if(MSVC)
target_compile_options(modern_ui_contract_tests PRIVATE /utf-8 /bigobj)
endif()
bmh_add_data_test(NAME modern_ui_contract_tests COMMAND modern_ui_contract_tests "${BMH_DATA}")
# The Modern fork of season_sim; with Classic data its output must equal season_sim's.
add_executable(modern_season_sim tests/modern_season_sim.cpp)
target_link_libraries(modern_season_sim PRIVATE bmh_modern_session)