From 074b51d5d9c4ee1d44bc0588fcff31a2852eaae4 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Sat, 18 Apr 2020 16:46:41 +0100 Subject: [PATCH] fix failing error --- src/game.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/game.rs b/src/game.rs index 5d3fb0f..15b3afd 100644 --- a/src/game.rs +++ b/src/game.rs @@ -392,9 +392,13 @@ fn test_bitsy_omnibus() { let mut passes = 0; let mut skips = 0; - let files = std::fs::read_dir("src/test-resources/omnibus").unwrap(); + let files = std::fs::read_dir("src/test-resources/omnibus"); - for file in files { + if ! files.is_ok() { + return; + } + + for file in files.unwrap() { let path = file.unwrap().path(); let nice_name = format!("{}", path.display());