Mercurial > touhou
diff src/th06/enemy.rs @ 703:81232dac8136
ecl: simplify parsing with more combinators.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 23 Aug 2019 17:37:22 +0200 |
parents | b6c351ca0a35 |
children | 6d4802abe134 |
line wrap: on
line diff
--- a/src/th06/enemy.rs +++ b/src/th06/enemy.rs @@ -505,7 +505,7 @@ mod tests { let anm0 = anms.pop().unwrap(); let anm0 = Rc::new(RefCell::new(anm0)); let prng = Rc::new(RefCell::new(Prng::new(0))); - let game = Game::new(prng, Rank::Easy); + let game = Game::new(prng, Rank::EASY); let game = Rc::new(RefCell::new(game)); let enemy = Enemy::new(Position::new(0., 0.), 500, 0, 640, Rc::downgrade(&anm0), Rc::downgrade(&game)); let mut enemy = enemy.borrow_mut();