diff --git a/src/game.rs b/src/game.rs index 3edeed8..0f82964 100644 --- a/src/game.rs +++ b/src/game.rs @@ -840,7 +840,7 @@ mod test { use crate::image::Image; #[test] - fn test_game_from_string() { + fn game_from_string() { let output = Game::from(include_str!["test-resources/default.bitsy"].to_string()).unwrap(); let expected = crate::mock::game_default(); @@ -848,19 +848,19 @@ mod test { } #[test] - fn test_game_to_string() { + fn game_to_string() { let output = crate::mock::game_default().to_string(); let expected = include_str!["test-resources/default.bitsy"].to_string(); assert_eq!(output, expected); } #[test] - fn test_tile_ids() { + fn tile_ids() { assert_eq!(crate::mock::game_default().tile_ids(), vec!["a".to_string()]); } #[test] - fn test_new_tile_id() { + fn new_tile_id() { // default tile has an id of 10 ("a"), and 0 is reserved assert_eq!(crate::mock::game_default().new_tile_id(), "1".to_string()); @@ -892,7 +892,7 @@ mod test { } #[test] - fn test_add_tile() { + fn add_tile() { let mut game = crate::mock::game_default(); let new_id = game.add_tile(crate::mock::tile_default()); assert_eq!(new_id, "1".to_string()); @@ -903,7 +903,7 @@ mod test { } #[test] - fn test_arabic() { + fn arabic() { let game = Game::from(include_str!("test-resources/arabic.bitsy").to_string()).unwrap(); assert_eq!(game.font, Font::Arabic); @@ -911,14 +911,14 @@ mod test { } #[test] - fn test_version_formatting() { + fn version_formatting() { let mut game = crate::mock::game_default(); game.version = Some(Version { major: 5, minor: 0 }); assert!(game.to_string().contains("# BITSY VERSION 5.0")) } #[test] - fn test_get_tiles_for_room() { + fn get_tiles_for_room() { assert_eq!( crate::mock::game_default().get_tiles_for_room("0".to_string()).unwrap(), vec![&crate::mock::tile_default()] @@ -926,7 +926,7 @@ mod test { } #[test] - fn test_add_item() { + fn add_item() { let mut game = crate::mock::game_default(); game.add_item(crate::mock::item()); game.add_item(crate::mock::item()); @@ -939,7 +939,7 @@ mod test { } #[test] - fn test_merge() { + fn merge() { // try merging two default games let mut game = crate::mock::game_default(); game.merge(crate::mock::game_default()); @@ -986,7 +986,7 @@ mod test { } #[test] - fn test_dedupe_tiles() { + fn dedupe_tiles() { let mut game = crate::mock::game_default(); game.add_tile(crate::mock::tile_default()); game.add_tile(crate::mock::tile_default());