test RTL and font options

This commit is contained in:
2020-04-18 12:45:43 +01:00
parent 935075e7a1
commit e1bf7cbae4
2 changed files with 117 additions and 0 deletions

View File

@@ -368,3 +368,10 @@ fn test_bitsy_omnibus() {
println!("Success! {} passes, {} skips.", passes, skips);
}
}
#[test]
fn test_arabic() {
let game = Game::from(include_str!("test-resources/arabic.bitsy").to_string());
assert_eq!(game.font, Font::Arabic);
assert_eq!(game.text_direction, TextDirection::RightToLeft);
}