game version handling done
This commit is contained in:
@@ -393,3 +393,10 @@ fn test_arabic() {
|
||||
assert_eq!(game.font, Font::Arabic);
|
||||
assert_eq!(game.text_direction, TextDirection::RightToLeft);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_version_formatting() {
|
||||
let mut game = crate::mock::game_default();
|
||||
game.version = Version { major: 5, minor: 0 };
|
||||
assert!(game.to_string().contains("# BITSY VERSION 5.0"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user