Skip to content

Commit

Permalink
tests: Match screen text correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaraLeigh committed Aug 14, 2023
1 parent a32fd6f commit 4631ce6
Showing 1 changed file with 61 additions and 3 deletions.
64 changes: 61 additions & 3 deletions tests/speed_display_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,67 @@ fn test_show_speed() {
let expected_display = MockDisplay::from_pattern(&[
"################################################################",
"# #",
// 9
// 7 TEXT: 120 km/h
// 48
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# # ### # # # # #",
"# ## # # # # # # # #",
"# # # # # # # # ## # # # ## #",
"# # ## # # # # # # # # ## # #",
"# # # # # ### # # # # # # #",
"# # # # # # # # # # # # # #",
"# ##### ##### # # # # # # # # #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #", // Leaving space down here for more data
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"################################################################",
]);

Expand Down

0 comments on commit 4631ce6

Please sign in to comment.