fix up tests

main
_ 2021-10-24 22:09:24 +00:00
parent 2a171a8e27
commit 6630002a34
1 changed files with 0 additions and 28 deletions

View File

@ -371,34 +371,6 @@ fn main () -> Result <()> {
#[cfg (test)] #[cfg (test)]
mod test { mod test {
use super::{
Io,
GameError,
Result,
State,
};
struct TestIo {
inputs: Vec <String>,
input_idx: usize,
}
impl Io for TestIo {
fn print (&mut self, _s: &str) {}
fn read_input (&mut self) -> Result <String> {
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] #[test]
fn parse_input () { fn parse_input () {
use super::{ use super::{