game version handling done

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

View File

@ -58,7 +58,6 @@ some more practical uses would be things like:
(avatar seems to be somewhere in the sprites,
after any numeric-ID sprites and before any alphabetic-ID sprites...)
* check multi-line endings/dialogues
* bitsy_version 5.0 is rendered as "5"
### tidy up

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