game version handling done
This commit is contained in:
parent
53bc9c6263
commit
cf8389ddd8
|
@ -58,7 +58,6 @@ some more practical uses would be things like:
|
||||||
(avatar seems to be somewhere in the sprites,
|
(avatar seems to be somewhere in the sprites,
|
||||||
after any numeric-ID sprites and before any alphabetic-ID sprites...)
|
after any numeric-ID sprites and before any alphabetic-ID sprites...)
|
||||||
* check multi-line endings/dialogues
|
* check multi-line endings/dialogues
|
||||||
* bitsy_version 5.0 is rendered as "5"
|
|
||||||
|
|
||||||
### tidy up
|
### tidy up
|
||||||
|
|
||||||
|
|
|
@ -393,3 +393,10 @@ fn test_arabic() {
|
||||||
assert_eq!(game.font, Font::Arabic);
|
assert_eq!(game.font, Font::Arabic);
|
||||||
assert_eq!(game.text_direction, TextDirection::RightToLeft);
|
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"))
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue