Test for overflow

This commit is contained in:
klangner 2021-08-26 17:11:14 +02:00
parent b9d633eb52
commit f65a5f3c6e

View File

@ -335,4 +335,18 @@ mod tests {
assert_eq!(map.tiles, expected_map.tiles);
}
#[test]
fn test_available_exists() {
let map_str = "
#########
# # #
##########
";
let map = Map::from_string(map_str);
let exists = map.get_available_exits(0, 0);
assert_eq!(exists.len(), 0);
}
}