game version handling done

This commit is contained in:
2020-04-18 12:49:51 +01:00
parent 53bc9c6263
commit cf8389ddd8
2 changed files with 7 additions and 1 deletions

View File

@@ -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"))
}