POMDPPlanners.tests.test_environments.test_pacman_pomdp_beliefs package
Tests for PacMan POMDP belief support.
Submodules
POMDPPlanners.tests.test_environments.test_pacman_pomdp_beliefs.benchmark_pacman_vectorized_belief module
Performance benchmark: PacMan vectorized vs non-vectorized belief.
- Run manually to measure speedup:
python -m POMDPPlanners.tests.test_environments.test_pacman_pomdp_beliefs.benchmark_pacman_vectorized_belief
POMDPPlanners.tests.test_environments.test_pacman_pomdp_beliefs.test_pacman_belief_factory module
POMDPPlanners.tests.test_environments.test_pacman_pomdp_beliefs.test_pacman_belief_integration module
POMDPPlanners.tests.test_environments.test_pacman_pomdp_beliefs.test_pacman_grid_utils module
Tests for PacMan grid navigation utility functions.
- class POMDPPlanners.tests.test_environments.test_pacman_pomdp_beliefs.test_pacman_grid_utils.TestNeighborTable[source]
Bases:
object- test_out_of_bounds_stays()[source]
Test that moving out of bounds keeps position unchanged.
Purpose: Validates boundary handling.
Given: A 5x5 maze. When: Moving North from (0,0) which would go out of bounds. Then: Position stays at (0,0).
Test type: unit
- test_valid_move_updates_position()[source]
Test that a valid move correctly updates position.
Purpose: Validates position update for valid moves.
Given: A 5x5 maze. When: Moving South from (0,0). Then: Position updates to (1,0).
Test type: unit
- test_wall_blocked_move_stays()[source]
Test that moving into a wall keeps position unchanged.
Purpose: Validates wall collision handling in neighbor table.
Given: A 5x5 maze with a wall at (1,1). When: Looking up a move from (1,0) East (which would go to (1,1)). Then: The result position stays at (1,0).
Test type: unit
- class POMDPPlanners.tests.test_environments.test_pacman_pomdp_beliefs.test_pacman_grid_utils.TestNeighborValidity[source]
Bases:
object
- class POMDPPlanners.tests.test_environments.test_pacman_pomdp_beliefs.test_pacman_grid_utils.TestValidCellMask[source]
Bases:
object