Isolate desktop pointer regressions from edition-specific mocks (by Codex)
This commit is contained in:
1 parent
0faad16148
commit
acdc7d5c14
1 file changed
+154
-140
+154
-140
@@ -592,82 +592,8 @@ void set_preparation_revision_source(PreparationState& state, uint64_t revision,
|
||||
if(state.pitch){state.pitch->revision=revision;state.pitch->source=source;}
|
||||
for(auto& card:state.player_cards){card.lineup.revision=revision;card.lineup.source=source;}
|
||||
}
|
||||
} // namespace
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
try {
|
||||
paired_closing_selection();
|
||||
if (argc < 2) throw std::runtime_error("data directory required");
|
||||
const bool input_only=argc>2 && std::string_view(argv[2])=="--input-only";
|
||||
const std::filesystem::path data = argv[1]; const auto exe = bmh::test::load_executable(asset_path(data,"BMH.exe"));
|
||||
paired_selection_matrix(exe);
|
||||
if(!input_only && argc>3)paired_saved_projection(argv[3],exe);
|
||||
// The date arithmetic is checked against a controlled epoch aligned with
|
||||
// the original leap cycle, independently of the installation's start year.
|
||||
auto oracle_exe = exe;
|
||||
const uint8_t oracle_year[] = {0xea,0x07,0,0};
|
||||
const uint8_t oracle_weekday = 2;
|
||||
oracle_exe.patch(layout::CalendarDateSetup+13,oracle_year,4);
|
||||
oracle_exe.patch(layout::CalendarDateSetup+4,&oracle_weekday,1);
|
||||
using namespace std::chrono;
|
||||
const sys_days epoch = year{2026}/7/1;
|
||||
for (uint32_t i = 0; i < 1461; ++i) {
|
||||
const auto d = desk_date(i,oracle_exe); const year_month_day oracle(epoch + days{i});
|
||||
check(d.year == int(oracle.year()) && d.month == int(unsigned(oracle.month())) &&
|
||||
d.day == int(unsigned(oracle.day())),"calendar/leap boundary mismatch");
|
||||
}
|
||||
rejected([&]{ desk_date(0xffff,exe); });
|
||||
calendar_projection_tests(exe);
|
||||
strengths_projection_tests();
|
||||
auto g = fixture(); const auto before_records = g.manager_records; const auto before_squads = g.squad_slots;
|
||||
auto d = desk_from_game(g,exe,7);
|
||||
DesktopScreen timed_desk(data,d);
|
||||
const auto deadline=timed_desk.process_timer_expired();
|
||||
check(deadline.kind==DeskRequestKind::advance_turn&&deadline.manager_slot==d.manager_slot&&
|
||||
deadline.revision==d.revision&&deadline.item_id==-1&&timed_desk.pending()==deadline,
|
||||
"Original deadline owns one typed turn request without a guessed icon hit");
|
||||
check(timed_desk.process_timer_expired().kind==DeskRequestKind::none,
|
||||
"repeated expired polls cannot duplicate the pending calendar turn");
|
||||
check(d.options.difficulty == 2 && d.runtime_club == 12 && d.strength == 90,"typed projection / strength");
|
||||
check(!d.table_position,"table rank stays absent before any league round is recorded");
|
||||
check(d.warnings[2] == true && d.warnings[5] == false && d.warnings[6] == false,"initial warnings");
|
||||
check(before_records == g.manager_records && before_squads == g.squad_slots,"projection must be read-only");
|
||||
check(desk_menu_name(25)=="fair_play"&&desk_menu_name(26)=="highscore",
|
||||
"ordinary menu 25/26 names match their Original desk functions");
|
||||
auto fair_fixture=fixture();
|
||||
for(int team=0;team<18;++team) fair_fixture.memory.set16(::bmh::layout::DeskRecords_Teams_RuntimeField+uint32_t(team)*2,uint16_t(team));
|
||||
fair_fixture.memory.set16(::bmh::layout::DeskRecords_Teams_RuntimeField+uint32_t(4)*2,0); // avoid a tied four-point team in this ordering assertion
|
||||
fair_fixture.memory.set16(::bmh::layout::DeskRecords_Teams_RuntimeField,0x0100); // one red card: four points, after scores 1..3
|
||||
const auto fair= fair_play_state_from_game(fair_fixture,0,{},0);
|
||||
check(fair.fair_play_rows.size()==18&&fair.fair_play_rows.front().team==4&&
|
||||
fair.fair_play_rows.front().points==0&&fair.fair_play_rows[4].team==0&&
|
||||
fair.fair_play_rows[4].points==4&&fair.fair_play_rows.back().team==17&&
|
||||
fair.fair_play_rows.back().points==17,
|
||||
"legacy routine ascending fair-play ordering uses four points per red card");
|
||||
auto fair_view=fair;fair_view.underlay=Image(320,240);
|
||||
DeskRecordsScreen fair_screen(data,std::move(fair_view));
|
||||
check(fair_screen.render().pixels.size()==320u*240u&&!fair_screen.closed(),
|
||||
"menu-25 Original panel renders the full Source league row set");
|
||||
DeskRecordsState high_view;high_view.kind=DeskRecordKind::highscore;high_view.underlay=Image(320,240);
|
||||
DeskRecordsScreen high_screen(data,std::move(high_view));
|
||||
check(high_screen.render().pixels.size()==320u*240u&&!high_screen.closed(),
|
||||
"menu-26 uses the five-row highscore presentation, not the game-end calculator");
|
||||
const auto high_backdrop=high_screen.render();
|
||||
check(high_screen.key_input("ENTER"),"Source calculator ENTER accepts its value");
|
||||
while(high_screen.advance_point()) {}
|
||||
check(high_screen.finish_points()&&high_screen.render().pixels!=high_backdrop.pixels,
|
||||
"signature-zero acceptance advances every Original points frame and retains the points image");
|
||||
check(high_screen.pointer_down(4,4)&&high_screen.closed(),
|
||||
"signature-zero points screen waits for its own mouse-down acknowledgement");
|
||||
DeskRecordsState ranked_high_view;ranked_high_view.kind=DeskRecordKind::highscore;
|
||||
ranked_high_view.highscore.ranked=true;
|
||||
ranked_high_view.underlay=Image(320,240);
|
||||
DeskRecordsScreen ranked_high_screen(data,std::move(ranked_high_view));
|
||||
const auto ranked_high_frame=ranked_high_screen.render();
|
||||
const auto source_ranked_art=load_vga(asset_path(data/"KB","51.VGA"));
|
||||
check(ranked_high_frame.pixels[size_t(50)*size_t(ranked_high_frame.width)+150]==
|
||||
source_ranked_art.pixels[size_t(25)*size_t(source_ranked_art.width)+50],
|
||||
"ranked menu-26 copies Source decimal asset 51 (legacy routine argument 0x33)");
|
||||
// Pointer regressions share synthetic desktop records across supported editions.
|
||||
void folder_pointer_input_tests(const std::filesystem::path& data,const LeImage& exe) {
|
||||
auto menu_game = fixture();
|
||||
menu_game.memory.set8(::bmh::layout::Desktops + 44 * 16 + 12, 63); // mailbox occurs before the menu shortcut in this scan
|
||||
menu_game.memory.set8(::bmh::layout::Desktops + 53 * 16 + 12, 72); // final compact-bar cell dispatches MEN
|
||||
@@ -934,6 +860,155 @@ int main(int argc, char** argv) {
|
||||
save_load_request_json(*menu_save_picker.pending()).find("\"file_kind\":\"menu_layout\"") != std::string::npos,
|
||||
"MEN save request uses the native extension and an explicit JSON file-kind discriminator");
|
||||
std::filesystem::remove_all(menu_test_dir);
|
||||
}
|
||||
|
||||
void desktop_control_input_tests(const std::filesystem::path& data,DeskState& d) {
|
||||
DesktopScreen desk(data,d);
|
||||
const auto pixels = desk.render().pixels;
|
||||
check(desk.render().pixels == pixels,"repeat render is deterministic");
|
||||
check(desk.click(5,23).kind == DeskRequestKind::none,"calendar handle must not advance a turn");
|
||||
auto action = desk.click(50,125);
|
||||
check(action.kind == DeskRequestKind::open_menu && action.menu_kind == 3 && action.manager_slot == 0 && action.revision == 10,"lineup request");
|
||||
check(desk.click(20,40).kind == DeskRequestKind::none,"pending command blocks another turn");
|
||||
rejected([&]{ desk.acknowledge(d); });
|
||||
++d.revision; desk.acknowledge(d);
|
||||
check(desk.click(20,40).kind == DeskRequestKind::advance_turn,"open calendar advances");
|
||||
check(desk.click(20,40).kind == DeskRequestKind::none,"no duplicate advance request");
|
||||
++d.revision; desk.acknowledge(d);
|
||||
check(desk.click(165,125).kind == DeskRequestKind::advance_turn,"kickoff icon advances");
|
||||
auto unframed_date=d;
|
||||
unframed_date.items.front().open=false;
|
||||
unframed_date.layout_records[1][13]&=0x7f;
|
||||
DesktopScreen date_click(data,unframed_date);
|
||||
check(date_click.pointer_down(20,40).kind==DeskRequestKind::none,
|
||||
"date press waits for its release without entering layout drag");
|
||||
const auto date_turn=date_click.pointer_up(20,40);
|
||||
check(date_turn.kind==DeskRequestKind::advance_turn && date_turn.menu_kind==58 &&
|
||||
date_turn.manager_slot==d.manager_slot && date_turn.revision==d.revision &&
|
||||
date_click.pointer_up(20,40).kind==DeskRequestKind::none,
|
||||
"unframed date body emits exactly one authenticated advance action");
|
||||
DesktopScreen date_drag(data,unframed_date);
|
||||
date_drag.pointer_down(20,40,true); date_drag.pointer_move(40,60);
|
||||
check(date_drag.pointer_up(40,60,true).layout_operation==DeskLayoutOperation::move_item,
|
||||
"unframed date retains right-button movement");
|
||||
check(desk.render().pixels == pixels,"commands cannot mutate the saved game view");
|
||||
for(bool framed : {true,false}) {
|
||||
auto controls=d;
|
||||
controls.items={{1,20,80,98,36,55,0,0,framed,false},
|
||||
{2,20,130,173,38,64,0,0,framed,false}};
|
||||
const int origin=20+(framed?4:0);
|
||||
for(int offset : {34,35,86,87}) {
|
||||
DesktopScreen price_control(data,controls);
|
||||
price_control.pointer_down(origin+offset,90);
|
||||
const auto price_action=price_control.pointer_up(origin+offset,90);
|
||||
check(price_action.kind==((offset==35||offset==86)?
|
||||
DeskRequestKind::change_ticket_price:DeskRequestKind::none),
|
||||
"framed and unframed admission controls use the rendered Source endpoints");
|
||||
if(offset==35||offset==86)
|
||||
check(price_action.value==(offset==35?8:25),"admission endpoint preserves its exact value");
|
||||
}
|
||||
for(int offset : {32,33,65,66,98,99,131,132}) {
|
||||
DesktopScreen automation_control(data,controls);
|
||||
automation_control.pointer_down(origin+offset,140);
|
||||
const auto option_action=automation_control.pointer_up(origin+offset,140);
|
||||
check(option_action.kind==DeskRequestKind::change_option && option_action.value==offset/33,
|
||||
"automation cell boundaries follow the optional frame offset");
|
||||
}
|
||||
}
|
||||
desk.reject_action("unsupported_menu");
|
||||
check(!desk.pending() && desk.render().pixels == pixels,"rejected command preserves state");
|
||||
check(desk.key("A").menu_kind == 3,"original A hotkey opens lineup");
|
||||
desk.reject_action("not_implemented");
|
||||
check(desk.key("D").menu_kind == 18,"original D hotkey opens tactics");
|
||||
desk.reject_action("not_implemented");
|
||||
check(desk.key("I").menu_kind == 16 && desk_menu_name(16)=="training" && desk_menu_name(15)=="training_camp",
|
||||
"original I and dispatch distinguish training from training camp");
|
||||
|
||||
}
|
||||
} // namespace
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
try {
|
||||
if (argc < 2) throw std::runtime_error("data directory required");
|
||||
const bool input_only=argc>2 && std::string_view(argv[2])=="--input-only";
|
||||
const std::filesystem::path data = argv[1]; const auto exe = bmh::test::load_executable(asset_path(data,"BMH.exe"));
|
||||
if(input_only) {
|
||||
folder_pointer_input_tests(data,exe);
|
||||
auto input_desk=desk_from_game(fixture(),exe,10);
|
||||
desktop_control_input_tests(data,input_desk);
|
||||
std::cout << "Desktop pointer, folders, removal corners and framed/unframed controls passed.\n";
|
||||
return 0;
|
||||
}
|
||||
paired_closing_selection();
|
||||
paired_selection_matrix(exe);
|
||||
if(argc>3)paired_saved_projection(argv[3],exe);
|
||||
// The date arithmetic is checked against a controlled epoch aligned with
|
||||
// the original leap cycle, independently of the installation's start year.
|
||||
auto oracle_exe = exe;
|
||||
const uint8_t oracle_year[] = {0xea,0x07,0,0};
|
||||
const uint8_t oracle_weekday = 2;
|
||||
oracle_exe.patch(layout::CalendarDateSetup+13,oracle_year,4);
|
||||
oracle_exe.patch(layout::CalendarDateSetup+4,&oracle_weekday,1);
|
||||
using namespace std::chrono;
|
||||
const sys_days epoch = year{2026}/7/1;
|
||||
for (uint32_t i = 0; i < 1461; ++i) {
|
||||
const auto d = desk_date(i,oracle_exe); const year_month_day oracle(epoch + days{i});
|
||||
check(d.year == int(oracle.year()) && d.month == int(unsigned(oracle.month())) &&
|
||||
d.day == int(unsigned(oracle.day())),"calendar/leap boundary mismatch");
|
||||
}
|
||||
rejected([&]{ desk_date(0xffff,exe); });
|
||||
calendar_projection_tests(exe);
|
||||
strengths_projection_tests();
|
||||
auto g = fixture(); const auto before_records = g.manager_records; const auto before_squads = g.squad_slots;
|
||||
auto d = desk_from_game(g,exe,7);
|
||||
DesktopScreen timed_desk(data,d);
|
||||
const auto deadline=timed_desk.process_timer_expired();
|
||||
check(deadline.kind==DeskRequestKind::advance_turn&&deadline.manager_slot==d.manager_slot&&
|
||||
deadline.revision==d.revision&&deadline.item_id==-1&&timed_desk.pending()==deadline,
|
||||
"Original deadline owns one typed turn request without a guessed icon hit");
|
||||
check(timed_desk.process_timer_expired().kind==DeskRequestKind::none,
|
||||
"repeated expired polls cannot duplicate the pending calendar turn");
|
||||
check(d.options.difficulty == 2 && d.runtime_club == 12 && d.strength == 90,"typed projection / strength");
|
||||
check(!d.table_position,"table rank stays absent before any league round is recorded");
|
||||
check(d.warnings[2] == true && d.warnings[5] == false && d.warnings[6] == false,"initial warnings");
|
||||
check(before_records == g.manager_records && before_squads == g.squad_slots,"projection must be read-only");
|
||||
check(desk_menu_name(25)=="fair_play"&&desk_menu_name(26)=="highscore",
|
||||
"ordinary menu 25/26 names match their Original desk functions");
|
||||
auto fair_fixture=fixture();
|
||||
for(int team=0;team<18;++team) fair_fixture.memory.set16(::bmh::layout::DeskRecords_Teams_RuntimeField+uint32_t(team)*2,uint16_t(team));
|
||||
fair_fixture.memory.set16(::bmh::layout::DeskRecords_Teams_RuntimeField+uint32_t(4)*2,0); // avoid a tied four-point team in this ordering assertion
|
||||
fair_fixture.memory.set16(::bmh::layout::DeskRecords_Teams_RuntimeField,0x0100); // one red card: four points, after scores 1..3
|
||||
const auto fair= fair_play_state_from_game(fair_fixture,0,{},0);
|
||||
check(fair.fair_play_rows.size()==18&&fair.fair_play_rows.front().team==4&&
|
||||
fair.fair_play_rows.front().points==0&&fair.fair_play_rows[4].team==0&&
|
||||
fair.fair_play_rows[4].points==4&&fair.fair_play_rows.back().team==17&&
|
||||
fair.fair_play_rows.back().points==17,
|
||||
"legacy routine ascending fair-play ordering uses four points per red card");
|
||||
auto fair_view=fair;fair_view.underlay=Image(320,240);
|
||||
DeskRecordsScreen fair_screen(data,std::move(fair_view));
|
||||
check(fair_screen.render().pixels.size()==320u*240u&&!fair_screen.closed(),
|
||||
"menu-25 Original panel renders the full Source league row set");
|
||||
DeskRecordsState high_view;high_view.kind=DeskRecordKind::highscore;high_view.underlay=Image(320,240);
|
||||
DeskRecordsScreen high_screen(data,std::move(high_view));
|
||||
check(high_screen.render().pixels.size()==320u*240u&&!high_screen.closed(),
|
||||
"menu-26 uses the five-row highscore presentation, not the game-end calculator");
|
||||
const auto high_backdrop=high_screen.render();
|
||||
check(high_screen.key_input("ENTER"),"Source calculator ENTER accepts its value");
|
||||
while(high_screen.advance_point()) {}
|
||||
check(high_screen.finish_points()&&high_screen.render().pixels!=high_backdrop.pixels,
|
||||
"signature-zero acceptance advances every Original points frame and retains the points image");
|
||||
check(high_screen.pointer_down(4,4)&&high_screen.closed(),
|
||||
"signature-zero points screen waits for its own mouse-down acknowledgement");
|
||||
DeskRecordsState ranked_high_view;ranked_high_view.kind=DeskRecordKind::highscore;
|
||||
ranked_high_view.highscore.ranked=true;
|
||||
ranked_high_view.underlay=Image(320,240);
|
||||
DeskRecordsScreen ranked_high_screen(data,std::move(ranked_high_view));
|
||||
const auto ranked_high_frame=ranked_high_screen.render();
|
||||
const auto source_ranked_art=load_vga(asset_path(data/"KB","51.VGA"));
|
||||
check(ranked_high_frame.pixels[size_t(50)*size_t(ranked_high_frame.width)+150]==
|
||||
source_ranked_art.pixels[size_t(25)*size_t(source_ranked_art.width)+50],
|
||||
"ranked menu-26 copies Source decimal asset 51 (legacy routine argument 0x33)");
|
||||
folder_pointer_input_tests(data,exe);
|
||||
TextDb desk_texts = load_textd(asset_path(data,"TEXTD.BLK"));
|
||||
auto match_game = g; match_game.texts = &desk_texts;
|
||||
match_game.club_names.assign(32,0);
|
||||
@@ -942,12 +1017,9 @@ int main(int argc, char** argv) {
|
||||
std::copy_n("BREMEN",6,match_game.club_names.begin()+16);
|
||||
match_game.club_ids[12]=0; match_game.club_ids[13]=7; match_game.club_ids[14]=16;
|
||||
match_game.results.assign(9 * 0x17c, 0xcc);
|
||||
// Input-only validation needs configured game assets, but no private text inventory.
|
||||
if(!input_only) {
|
||||
check(desk_texts[(::bmh::layout::FixtureDesktopFirstLabelPointer-::bmh::layout::TextPointerTable)/4]==bmh::test::expected_text("desktop_tests.0") &&
|
||||
desk_texts[(::bmh::layout::FixtureDesktopSecondLabelPointer-::bmh::layout::TextPointerTable)/4]==bmh::test::expected_text("desktop_tests.1"),
|
||||
"kind-61 rank suffix and strength label resolve from the Source TEXTD addresses");
|
||||
}
|
||||
check(format_number(match_game,6,2)=="%6" && format_number(match_game,95,2)=="95",
|
||||
"legacy routine width 2 keeps a transparent leading cell only for one-digit strength");
|
||||
const Font small_font=load_font(data/"F"/"BMH3.FNT");
|
||||
@@ -1148,66 +1220,8 @@ int main(int argc, char** argv) {
|
||||
auto wrong = d.options; wrong.managers = 5; rejected([&]{ validate_desk_profile(wrong); });
|
||||
wrong = d.options; wrong.world = false; wrong.league = false; rejected([&]{ validate_desk_profile(wrong); });
|
||||
|
||||
d = desk_from_game(g,exe,10); DesktopScreen desk(data,d);
|
||||
const auto pixels = desk.render().pixels;
|
||||
check(desk.render().pixels == pixels,"repeat render is deterministic");
|
||||
check(desk.click(5,23).kind == DeskRequestKind::none,"calendar handle must not advance a turn");
|
||||
auto action = desk.click(50,125);
|
||||
check(action.kind == DeskRequestKind::open_menu && action.menu_kind == 3 && action.manager_slot == 0 && action.revision == 10,"lineup request");
|
||||
check(desk.click(20,40).kind == DeskRequestKind::none,"pending command blocks another turn");
|
||||
rejected([&]{ desk.acknowledge(d); });
|
||||
++d.revision; desk.acknowledge(d);
|
||||
check(desk.click(20,40).kind == DeskRequestKind::advance_turn,"open calendar advances");
|
||||
check(desk.click(20,40).kind == DeskRequestKind::none,"no duplicate advance request");
|
||||
++d.revision; desk.acknowledge(d);
|
||||
check(desk.click(165,125).kind == DeskRequestKind::advance_turn,"kickoff icon advances");
|
||||
auto unframed_date=d;
|
||||
unframed_date.items.front().open=false;
|
||||
unframed_date.layout_records[1][13]&=0x7f;
|
||||
DesktopScreen date_click(data,unframed_date);
|
||||
check(date_click.pointer_down(20,40).kind==DeskRequestKind::none,
|
||||
"date press waits for its release without entering layout drag");
|
||||
const auto date_turn=date_click.pointer_up(20,40);
|
||||
check(date_turn.kind==DeskRequestKind::advance_turn && date_turn.menu_kind==58 &&
|
||||
date_turn.manager_slot==d.manager_slot && date_turn.revision==d.revision &&
|
||||
date_click.pointer_up(20,40).kind==DeskRequestKind::none,
|
||||
"unframed date body emits exactly one authenticated advance action");
|
||||
DesktopScreen date_drag(data,unframed_date);
|
||||
date_drag.pointer_down(20,40,true); date_drag.pointer_move(40,60);
|
||||
check(date_drag.pointer_up(40,60,true).layout_operation==DeskLayoutOperation::move_item,
|
||||
"unframed date retains right-button movement");
|
||||
check(desk.render().pixels == pixels,"commands cannot mutate the saved game view");
|
||||
for(bool framed : {true,false}) {
|
||||
auto controls=d;
|
||||
controls.items={{1,20,80,98,36,55,0,0,framed,false},
|
||||
{2,20,130,173,38,64,0,0,framed,false}};
|
||||
const int origin=20+(framed?4:0);
|
||||
for(int offset : {34,35,86,87}) {
|
||||
DesktopScreen price_control(data,controls);
|
||||
price_control.pointer_down(origin+offset,90);
|
||||
const auto price_action=price_control.pointer_up(origin+offset,90);
|
||||
check(price_action.kind==((offset==35||offset==86)?
|
||||
DeskRequestKind::change_ticket_price:DeskRequestKind::none),
|
||||
"framed and unframed admission controls use the rendered Source endpoints");
|
||||
if(offset==35||offset==86)
|
||||
check(price_action.value==(offset==35?8:25),"admission endpoint preserves its exact value");
|
||||
}
|
||||
for(int offset : {32,33,65,66,98,99,131,132}) {
|
||||
DesktopScreen automation_control(data,controls);
|
||||
automation_control.pointer_down(origin+offset,140);
|
||||
const auto option_action=automation_control.pointer_up(origin+offset,140);
|
||||
check(option_action.kind==DeskRequestKind::change_option && option_action.value==offset/33,
|
||||
"automation cell boundaries follow the optional frame offset");
|
||||
}
|
||||
}
|
||||
desk.reject_action("unsupported_menu");
|
||||
check(!desk.pending() && desk.render().pixels == pixels,"rejected command preserves state");
|
||||
check(desk.key("A").menu_kind == 3,"original A hotkey opens lineup");
|
||||
desk.reject_action("not_implemented");
|
||||
check(desk.key("D").menu_kind == 18,"original D hotkey opens tactics");
|
||||
desk.reject_action("not_implemented");
|
||||
check(desk.key("I").menu_kind == 16 && desk_menu_name(16)=="training" && desk_menu_name(15)=="training_camp",
|
||||
"original I and dispatch distinguish training from training camp");
|
||||
d = desk_from_game(g,exe,10);
|
||||
desktop_control_input_tests(data,d);
|
||||
|
||||
StartupFlow flow(data); begin(flow);
|
||||
auto result = CareerInitializationResult{d,{{0,0,12}}};
|
||||
@@ -1362,7 +1376,7 @@ int main(int argc, char** argv) {
|
||||
results_flow.screen_name()=="desktop" && !results_flow.desktop()->pending(),
|
||||
"Escape closes results without issuing another kickoff");
|
||||
|
||||
if (!input_only && argc > 2 && std::string(argv[2]).size()) {
|
||||
if (argc > 2 && std::string(argv[2]).size()) {
|
||||
const auto original = read_file(argv[2]);
|
||||
auto state = load_reference_desk(argv[2],exe);
|
||||
check(state.manager_name=="BMHLAB" && state.runtime_club==12 && state.balance==6243300 && state.strength==86,"captured single-manager baseline");
|
||||
|
||||
Reference in new issue
Block a user