diff --git a/src/main.rs b/src/main.rs index 80b6a3b..7772b10 100644 --- a/src/main.rs +++ b/src/main.rs @@ -371,34 +371,6 @@ fn main () -> Result <()> { #[cfg (test)] mod test { - use super::{ - Io, - GameError, - Result, - State, - }; - - struct TestIo { - inputs: Vec , - input_idx: usize, - } - - impl Io for TestIo { - fn print (&mut self, _s: &str) {} - - fn read_input (&mut self) -> Result { - if self.input_idx >= self.inputs.len () { - return Err (GameError::IoError); - } - - let s = self.inputs [self.input_idx].clone (); - self.input_idx += 1; - Ok (s) - } - - fn sleep (&mut self, _milliseconds: u32) {} - } - #[test] fn parse_input () { use super::{