First chunk of battling is now fully working, along with integration tests! 🎉
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
44
tests/test_cases/basic_single_turn.yaml
Normal file
44
tests/test_cases/basic_single_turn.yaml
Normal file
@@ -0,0 +1,44 @@
|
||||
name: basic_single_turn
|
||||
battle_setup:
|
||||
seed: 10
|
||||
can_flee: false
|
||||
number_of_sides: 2
|
||||
pokemon_per_side: 1
|
||||
parties:
|
||||
- indices:
|
||||
- [ 0, 0 ]
|
||||
pokemon:
|
||||
- species: charizard
|
||||
level: 50
|
||||
moves:
|
||||
- ember
|
||||
- indices:
|
||||
- [ 1, 0 ]
|
||||
pokemon:
|
||||
- species: venusaur
|
||||
level: 50
|
||||
moves:
|
||||
- vine_whip
|
||||
actions:
|
||||
- set_pokemon:
|
||||
place: [ 0, 0 ]
|
||||
from_party: [ 0 ,0 ]
|
||||
- set_pokemon:
|
||||
place: [ 1, 0 ]
|
||||
from_party: [ 1 ,0 ]
|
||||
- assert:
|
||||
value:
|
||||
pokemon_health:
|
||||
index: [ 1, 0 ]
|
||||
expected: 140
|
||||
- set_move_choice:
|
||||
for: [ 0, 0 ]
|
||||
move: ember
|
||||
target: [ 1, 0 ]
|
||||
- set_pass_choice:
|
||||
for: [ 1, 0 ]
|
||||
- assert:
|
||||
value:
|
||||
pokemon_health:
|
||||
index: [ 1, 0 ]
|
||||
expected: 78
|
||||
Reference in New Issue
Block a user