test adjustment

This commit is contained in:
Niko Abeler 2023-01-05 20:15:28 +01:00
parent 717be3a32f
commit ed8a048a22
2 changed files with 3 additions and 2 deletions

View File

@ -206,7 +206,7 @@ mod tests {
#[test]
fn test_start_traveling() {
let mut person = Creature::new(Time { time: 0 }, Location{x: 0, y: 0}, Profession::Peasant);
let mut person = Creature::new(Time { time: 0 }, Location{x: 0, y: 0}, Profession::Adventurer);
person.agenda = Agenda::Idle(0);
let mut world = World::new(32);
world.add_site(Site{

View File

@ -70,7 +70,8 @@ mod tests {
let mut creature = Creature::new(
Time { time: 0 },
Location { x: 0, y: 0 }
Location { x: 0, y: 0 },
crate::creature::Profession::Adventurer,
);
creature.set_agenda(Agenda::Traveling(Location { x: 2, y: 2 }));
state.add_person(creature);