From 6630002a34d4d9a258622767633bc96486728fdd Mon Sep 17 00:00:00 2001 From: _ <> Date: Sun, 24 Oct 2021 22:09:24 +0000 Subject: [PATCH] :white_check_mark: fix up tests --- src/main.rs | 28 ---------------------------- 1 file changed, 28 deletions(-) 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::{