Browse Source

Fix tests

main
Adrian Heine 3 years ago
parent
commit
3b1db890b7
  1. 8
      src/world.rs

8
src/world.rs

@ -141,8 +141,8 @@ mod test {
vec![(Position { x: 0, y: 0 }, Box::new(NullAgent))], vec![(Position { x: 0, y: 0 }, Box::new(NullAgent))],
); );
world.do_step(); world.do_step();
assert_eq!(world.tagged, 0);
assert_eq!(world.tagged_by, None);
assert_eq!(world.state.tagged, 0);
assert_eq!(world.state.tagged_by, None);
} }
#[test] #[test]
@ -161,8 +161,8 @@ mod test {
], ],
); );
world.do_step(); world.do_step();
assert_eq!(world.tagged, 0);
assert_eq!(world.tagged_by, Some(1));
assert_eq!(world.state.tagged, 0);
assert_eq!(world.state.tagged_by, Some(1));
} }
#[test] #[test]

Loading…
Cancel
Save