Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* BDSP AutoStory Story Simulation Tests

Check warning on line 1 in SerialPrograms/Source/PokemonBDSP/Programs/AutoStory/Simulation/PokemonBDSP_AutoStory_StorySimulation_Tests.cpp

View workflow job for this annotation

GitHub Actions / code-health

Code health (advisory)

<file>: file_lines=810 (advisory above 500, limit 1000)
*
* From: https://github.com/PokemonAutomation/
*
Expand Down Expand Up @@ -525,8 +525,9 @@
}

// With Run Starter RNG in AutoStory on, 00.02 saves at the Verity
// Lakefront, runs 00.02/starter_rng, and chains into 00.03.
// Lakefront, runs 00.02/starter_rng, and chains into 00.03. Console B,
// 2026-11-15: 00.03's start save must still name Verity Lakefront.
UnitTestResult test_run_starter_rng_in_story(Logger&){

Check warning on line 530 in SerialPrograms/Source/PokemonBDSP/Programs/AutoStory/Simulation/PokemonBDSP_AutoStory_StorySimulation_Tests.cpp

View workflow job for this annotation

GitHub Actions / code-health

Code health (advisory)

PokemonAutomation::NintendoSwitch::PokemonBDSP::test_run_starter_rng_in_story( Logger &): function_lines=28 (advisory above 25, limit 50)
Pokemon::SegmentHooks hooks;
hooks.reload = [&](RunState&){ return Pokemon::outcome_ok(); };
Simulation in_program_sim;
Expand All @@ -543,10 +544,12 @@
in_program_sim.count("save in 00.02") != 1 ||
in_program_sim.count("card for 00.02: Verity Lakefront") != 1 ||
in_program_sim.count("00.02/starter_rng") != 1 ||
in_program_sim.count("00.02/choose_starter") != 0
in_program_sim.count("00.02/choose_starter") != 0 ||
in_program_sim.count("save in 00.03") != 1 ||
in_program_sim.count("card for 00.03: Verity Lakefront") != 1
){
return std::format(
"Expected 00.02 with Run Starter RNG in AutoStory to save at Verity Lakefront, run 00.02/starter_rng, and continue to 00.03:{}",
"Expected 00.02 with Run Starter RNG in AutoStory to save at Verity Lakefront, run 00.02/starter_rng, and start 00.03 with another Verity Lakefront save:{}",
joined(in_program_sim.trace)
);
}
Expand Down
Loading