Skip to content
Draft
Show file tree
Hide file tree
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
16 changes: 16 additions & 0 deletions SerialPrograms/Source/PokemonBDSP/PokemonBDSP_Tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
#include "Inference/PokemonBDSP_MenuDetector.h"
#include "Programs/AutoStory/Actions/PokemonBDSP_AutoStory_Actions_Tests.h"
#include "Programs/AutoStory/Simulation/PokemonBDSP_AutoStory_FrozenTrainer_Tests.h"
#include "Programs/AutoStory/Simulation/PokemonBDSP_AutoStory_GridSim_Tests.h"
#include "Programs/AutoStory/Simulation/PokemonBDSP_AutoStory_FaultSweep_Tests.h"
#include "Programs/AutoStory/Simulation/PokemonBDSP_AutoStory_SimFailureCases_Tests.h"
#include "Programs/AutoStory/Simulation/PokemonBDSP_AutoStory_SimGolden_Tests.h"
#include "Programs/AutoStory/PokemonBDSP_AutoStory_RecoveryWalk_Tests.h"
#include "Programs/AutoStory/PokemonBDSP_AutoStory_Maps_Tests.h"
#include "Programs/AutoStory/PokemonBDSP_AutoStory_PlannedRoute_Tests.h"
#include "Programs/AutoStory/PokemonBDSP_AutoStory_SimulatedRoute_Tests.h"
Expand All @@ -17,6 +22,9 @@
#include "Programs/AutoStory/PokemonBDSP_AutoStory_StoryMaps_Tests.h"
#include "Programs/AutoStory/PokemonBDSP_AutoStory_StoryWorld_Tests.h"
#include "Programs/AutoStory/Simulation/PokemonBDSP_AutoStory_StoryActions_Tests.h"
#include "Programs/AutoStory/Simulation/PokemonBDSP_AutoStory_StoryMonteCarlo_Tests.h"
#include "Programs/AutoStory/Simulation/PokemonBDSP_AutoStory_StorySim_Tests.h"
#include "Programs/AutoStory/Simulation/PokemonBDSP_AutoStory_StorySimulation_Tests.h"
#include "Programs/AutoStory/PokemonBDSP_AutoStory_StoryData_Tests.h"
#include "Programs/AutoStory/PokemonBDSP_AutoStory_StoryTable_Tests.h"
#include "Programs/AutoStory/PokemonBDSP_AutoStory_RouteBench_Tests.h"
Expand All @@ -32,7 +40,7 @@



void add_tests(UnitTestDatabase& database){

Check warning on line 43 in SerialPrograms/Source/PokemonBDSP/PokemonBDSP_Tests.cpp

View workflow job for this annotation

GitHub Actions / code-health

Code health (advisory)

PokemonAutomation::NintendoSwitch::PokemonBDSP::add_tests( UnitTestDatabase & database): function_lines=29 (advisory above 25, limit 50)
add_tests_DialogDetector(database);
add_tests_MenuDetector(database);
add_tests_AutoStory_Actions(database);
Expand All @@ -42,14 +50,22 @@
add_tests_AutoStory_RouteBench(database);
add_tests_AutoStory_StoryMaps(database);
add_tests_AutoStory_Segment00(database);
add_tests_AutoStory_StorySimulation(database);
add_tests_AutoStory_StoryData(database);
add_tests_AutoStory_StoryTable(database);
add_tests_AutoStory_Walk(database);
add_tests_AutoStory_WildBattlePolicy(database);
add_tests_AutoStory_PlannedRoute(database);
add_tests_AutoStory_SimulatedRoute(database);
add_tests_AutoStory_GridSim(database);
add_tests_AutoStory_FrozenTrainer(database);
add_tests_AutoStory_WallBattleSim(database);
add_tests_AutoStory_RecoveryWalk(database);
add_tests_AutoStory_StorySim(database);
add_tests_AutoStory_StoryMonteCarlo(database);
add_tests_AutoStory_SimFailureCases(database);
add_tests_AutoStory_FaultSweep(database);
add_tests_AutoStory_SimGolden(database);
add_tests_AutoStory_StoryActions(database);
add_tests_StarterRng(database);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,3 +267,198 @@ anchor); 0 from one start tile.
2. east 14 (to wall) -> Jubilife City (59, 26)
3. north 5 (to wall) -> Jubilife City (59, 21)
totals: 3 legs, 2 turns, 1 open, 0 localization

== 01.01 west_of_barrys_trigger (costs: town)
from: JubilifeCity (59, 21) facing north (tile)
target: Route203 (4, 18) facing east (tile)
start candidates: Jubilife City (59, 21)
1. south 1 (open) -> Jubilife City (59, 22)
2. east 8 (open) -> Route 203 (4, 18)
totals: 2 legs, 1 turns, 2 open, 0 localization

== 01.02 south_to_the_cliff (costs: route)
from: Route203 (5, 17) (5, 18) (5, 19) (5, 20) facing east (set)
target: Route203 (5, 20) facing south (tile)
start candidates: Route 203 (5, 17), Route 203 (5, 18), Route 203 (5, 19), Route 203 (5, 20)
1. south 3 (to wall) -> Route 203 (5, 20)
totals: 1 legs, 0 turns, 0 open, 1 localization

== 01.02 by_the_gate (costs: route)
from: Route203 (5, 20) facing south (tile)
target: Route203 (55, 9) facing east (tile)
start candidates: Route 203 (5, 20)
1. north 2 (open) -> Route 203 (5, 18)
2. east 50 (to wall) -> Route 203 (55, 18)
3. north 12 (to wall) -> Route 203 (55, 6)
4. south 3 (open) -> Route 203 (55, 9)
totals: 4 legs, 3 turns, 2 open, 0 localization

== 01.02 into_the_hikers_scene (costs: into_scene)
from: OreburghGate (4, 22) (5, 22) facing east (set)
target: OreburghGate (4, 22) (5, 22) facing east (set)
start candidates: OreburghGate (4, 22), OreburghGate (5, 22)
totals: 0 legs, 0 turns, 0 open, 0 localization

== 01.02 past_curtis (costs: exit)
from: OreburghGate (7, 22) facing east (tile)
target: OreburghGate (20, 22) facing east (tile)
start candidates: OreburghGate (7, 22)
1. east 13 (open) -> OreburghGate (20, 22)
totals: 1 legs, 0 turns, 1 open, 0 localization

== 01.02 by_the_east_mouth (costs: exit)
from: OreburghGate (20, 22) facing east (tile)
target: OreburghGate (26, 22) facing east (tile)
start candidates: OreburghGate (20, 22)
1. east 6 (open) -> OreburghGate (26, 22)
totals: 1 legs, 0 turns, 1 open, 0 localization

== 01.02 into_the_welcome_scene (costs: into_scene)
from: OreburghCity (2, 13) (3, 13) facing east (set)
target: OreburghCity (2, 13) (3, 13) facing east (set)
start candidates: Oreburgh City (2, 13), Oreburgh City (3, 13)
totals: 0 legs, 0 turns, 0 open, 0 localization

== 01.02b below_the_centers_door (costs: town)
from: OreburghCity (26, 22) facing north (tile)
target: OreburghCity (47, 21) facing north (tile)
start candidates: Oreburgh City (26, 22)
1. east 22 (to wall) -> Oreburgh City (48, 22)
2. north 1 (to wall) -> Oreburgh City (48, 21)
3. west 1 (open) -> Oreburgh City (47, 21)
totals: 3 legs, 2 turns, 1 open, 0 localization

== 01.03 above_the_mine (costs: town)
from: OreburghCity (47, 21) (46, 21) facing south (set)
target: OreburghCity (46, 57) facing south (tile)
start candidates: Oreburgh City (47, 21), Oreburgh City (46, 21)
1. east 2 (to wall) -> Oreburgh City (48, 21)
2. west 4 (open) -> Oreburgh City (44, 21)
3. south 20 (to wall) -> Oreburgh City (44, 41)
4. west 1 (open) -> Oreburgh City (43, 41)
5. south 16 (to wall) -> Oreburgh City (43, 57)
6. east 3 (open) -> Oreburgh City (46, 57)
totals: 6 legs, 5 turns, 3 open, 1 localization

== 01.05 east_of_barrys_trigger (costs: town)
from: OreburghCity (26, 21) (26, 22) facing south (set)
target: OreburghCity (7, 13) facing west (tile)
start candidates: Oreburgh City (26, 21), Oreburgh City (26, 22)
1. south 5 (to wall) -> Oreburgh City (26, 26)
2. north 1 (open) -> Oreburgh City (26, 25)
3. west 14 (to wall) -> Oreburgh City (12, 25)
4. north 12 (open) -> Oreburgh City (12, 13)
5. west 5 (open) -> Oreburgh City (7, 13)
totals: 5 legs, 4 turns, 3 open, 1 localization

== 01.05 through_the_gate (costs: route)
from: OreburghGate (27, 22) (26, 22) facing west (set)
target: OreburghGate (5, 22) facing west (tile)
start candidates: OreburghGate (27, 22), OreburghGate (26, 22)
1. north 2 (to wall) -> OreburghGate (27, 20), OreburghGate (26, 21)
2. east 1 (to wall) -> OreburghGate (27, 20), OreburghGate (27, 21)
3. south 3 (to wall) -> OreburghGate (27, 23)
4. west 19 (to wall) -> OreburghGate (8, 23)
5. north 1 (to wall) -> OreburghGate (8, 22)
6. west 3 (open) -> OreburghGate (5, 22)
totals: 6 legs, 5 turns, 1 open, 3 localization

== 01.06 up_jubilifes_road (costs: town)
from: Route203 (55, 9) facing west (tile)
target: JubilifeCity (41, 8) facing north (tile)
start candidates: Route 203 (55, 9)
1. south 10 (to wall) -> Route 203 (55, 19)
2. west 17 (to wall) -> Route 203 (38, 19)
3. north 1 (open) -> Route 203 (38, 18)
4. west 60 (open) -> Jubilife City (41, 22)
5. north 14 (to wall) -> Jubilife City (41, 8)
totals: 5 legs, 4 turns, 2 open, 0 localization

== 01.06 below_rowans_trigger (costs: town)
from: JubilifeCity (41, 8) facing north (tile)
target: JubilifeCity (47, 8) facing north (tile)
start candidates: Jubilife City (41, 8)
1. east 6 (to wall) -> Jubilife City (47, 8)
totals: 1 legs, 0 turns, 0 open, 0 localization

== 01.08 west_to_the_wall (costs: route)
from: JubilifeCity (46, 5) (47, 5) (set)
target: JubilifeCity (44, 5) facing west (tile)
start candidates: Jubilife City (46, 5), Jubilife City (47, 5)
1. west 3 (to wall) -> Jubilife City (44, 5)
totals: 1 legs, 0 turns, 0 open, 1 localization

== 01.08 below_the_ravaged_path (costs: town)
from: JubilifeCity (44, 5) facing west (tile)
target: Route204South (11, 3) facing north (tile)
start candidates: Jubilife City (44, 5)
1. east 2 (open) -> Jubilife City (46, 5)
2. north 19 (to wall) -> Route 204 (14, 18)
3. west 4 (open) -> Route 204 (10, 18)
4. north 15 (to wall) -> Route 204 (10, 3)
5. east 1 (open) -> Route 204 (11, 3)
totals: 5 legs, 4 turns, 3 open, 0 localization

== 01.09 west_of_the_rock (costs: route)
from: RavagedPath (19, 50) facing north (tile)
target: RavagedPath (21, 43) facing east (tile)
start candidates: RavagedPath (19, 50)
1. north 10 (to wall) -> RavagedPath (19, 40)
2. south 3 (open) -> RavagedPath (19, 43)
3. east 2 (open) -> RavagedPath (21, 43)
totals: 3 legs, 2 turns, 2 open, 0 localization

== 01.09 above_the_way_out (costs: route)
from: RavagedPath (21, 43) facing east (tile)
target: RavagedPath (28, 44) facing south (tile)
start candidates: RavagedPath (21, 43)
1. east 8 (to wall) -> RavagedPath (29, 43)
2. south 1 (to wall) -> RavagedPath (29, 44)
3. west 1 (open) -> RavagedPath (28, 44)
totals: 3 legs, 2 turns, 1 open, 0 localization

== 01.10 line_1 (costs: line)
from: Route204North (20, 26) (20, 27) facing south (set)
target: Route204North (20, 30) (tile)
start candidates: Route 204 (20, 26), Route 204 (20, 27)
1. south 4 (to wall) -> Route 204 (20, 30)
totals: 1 legs, 0 turns, 0 open, 1 localization

== 01.10 line_2 (costs: line)
from: Route204North (20, 30) (tile)
target: Route204North (11, 27) (tile)
start candidates: Route 204 (20, 30)
1. north 3 (open) -> Route 204 (20, 27)
2. west 9 (open) -> Route 204 (11, 27)
totals: 2 legs, 1 turns, 2 open, 0 localization

== 01.10 line_3 (costs: line)
from: Route204North (11, 27) (tile)
target: Route204North (11, 22) (tile)
start candidates: Route 204 (11, 27)
1. north 5 (open) -> Route 204 (11, 22)
totals: 1 legs, 0 turns, 1 open, 0 localization

== 01.10 line_4 (costs: line)
from: Route204North (11, 22) (tile)
target: Route204North (19, 22) (tile)
start candidates: Route 204 (11, 22)
1. east 10 (to wall) -> Route 204 (21, 22)
2. west 2 (open) -> Route 204 (19, 22)
totals: 2 legs, 1 turns, 1 open, 0 localization

== 01.10 line_5 (costs: line)
from: Route204North (19, 22) (tile)
target: Route204North (19, 12) (tile)
start candidates: Route 204 (19, 22)
1. north 15 (to wall) -> Route 204 (19, 7)
2. south 5 (open) -> Route 204 (19, 12)
totals: 2 legs, 1 turns, 1 open, 0 localization

== 01.10 line_6 (costs: line)
from: Route204North (19, 12) (tile)
target: Route204North (11, 12) (tile)
start candidates: Route 204 (19, 12)
1. west 9 (to wall) -> Route 204 (10, 12)
2. east 1 (open) -> Route 204 (11, 12)
totals: 2 legs, 1 turns, 1 open, 0 localization
Loading
Loading