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:
1 parent
3336d01004
commit
fec4c6c7e7
5 files changed
+207
-2
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user