()
| 1105 | |
| 1106 | #[test] |
| 1107 | fn test_draw_text_one_char() { |
| 1108 | let mut rasops = RecordingRasops::default(); |
| 1109 | draw_text(&mut rasops, &crate::gfx::lcd::fonts::FONT_5X8, PixelsXY::new(10, 20), "!") |
| 1110 | .unwrap(); |
| 1111 | assert_eq!( |
| 1112 | [ |
| 1113 | CapturedRasop::DrawPixel(12, 20), |
| 1114 | CapturedRasop::DrawPixel(12, 21), |
| 1115 | CapturedRasop::DrawPixel(12, 22), |
| 1116 | CapturedRasop::DrawPixel(12, 23), |
| 1117 | CapturedRasop::DrawPixel(12, 25), |
| 1118 | ], |
| 1119 | rasops.ops.as_slice() |
| 1120 | ); |
| 1121 | } |
| 1122 | |
| 1123 | #[test] |
| 1124 | fn test_draw_text_two_chars() { |
nothing calls this directly
no test coverage detected