From 7c566ab9d3bc13c28f27846f199b1222ebc126c6 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Sat, 18 Apr 2020 14:03:01 +0100 Subject: [PATCH] update test results --- src/game.rs | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/game.rs b/src/game.rs index f5d932a..fe74165 100644 --- a/src/game.rs +++ b/src/game.rs @@ -353,23 +353,39 @@ fn test_bitsy_omnibus() { // fails because of sprite colours but also because a tile contains "NaN" "src/test-resources/omnibus/DA88C287.bitsy.txt".to_string(), - // fails because room wall array is not implemented - @todo investigate + // fails because room wall array is not implemented // (this game uses room_format 1 - I thought it'd be using 0...) "src/test-resources/omnibus/76EB6E4A.bitsy.txt".to_string(), "src/test-resources/omnibus/DC053B1A.bitsy.txt".to_string(), "src/test-resources/omnibus/CD0609B6.bitsy.txt".to_string(), + "src/test-resources/omnibus/E45F178D.bitsy.txt".to_string(), + // not sure about this one but it uses room wall array + "src/test-resources/omnibus/748F77B5.bitsy.txt".to_string(), + "src/test-resources/omnibus/1998508E.bitsy.txt".to_string(), + "src/test-resources/omnibus/AB368CEC.bitsy.txt".to_string(), // bad game data "src/test-resources/omnibus/14C48FA0.bitsy.txt".to_string(), + "src/test-resources/omnibus/C63A0633.bitsy.txt".to_string(), + "src/test-resources/omnibus/C63A0633.bitsy.txt".to_string(), // this one has font data appended to the end of the game data - is this valid? "src/test-resources/omnibus/4B4EB988.bitsy.txt".to_string(), + + // one of the dialogues has a trailing space - this should be allowed I think + "src/test-resources/omnibus/11018B25.bitsy.txt".to_string(), + "src/test-resources/omnibus/FEC6E602.bitsy.txt".to_string(), + + // has an ending position of -1 + "src/test-resources/omnibus/593BD9A6.bitsy.txt".to_string(), ]; let mut passes = 0; let mut skips = 0; - for file in std::fs::read_dir("src/test-resources/omnibus").unwrap() { + let files = std::fs::read_dir("src/test-resources/omnibus").unwrap(); + + for file in files { let path = file.unwrap().path(); let nice_name = format!("{}", path.display());