MCPcopy Index your code
hub / github.com/endbasic/endbasic / test_draw_text_two_chars

Function test_draw_text_two_chars

std/src/console/drawing.rs:1124–1143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1122
1123 #[test]
1124 fn test_draw_text_two_chars() {
1125 let mut rasops = RecordingRasops::default();
1126 draw_text(&mut rasops, &crate::gfx::lcd::fonts::FONT_5X8, PixelsXY::new(10, 20), "!!")
1127 .unwrap();
1128 assert_eq!(
1129 [
1130 CapturedRasop::DrawPixel(12, 20),
1131 CapturedRasop::DrawPixel(12, 21),
1132 CapturedRasop::DrawPixel(12, 22),
1133 CapturedRasop::DrawPixel(12, 23),
1134 CapturedRasop::DrawPixel(12, 25),
1135 CapturedRasop::DrawPixel(17, 20),
1136 CapturedRasop::DrawPixel(17, 21),
1137 CapturedRasop::DrawPixel(17, 22),
1138 CapturedRasop::DrawPixel(17, 23),
1139 CapturedRasop::DrawPixel(17, 25),
1140 ],
1141 rasops.ops.as_slice()
1142 );
1143 }
1144
1145 #[test]
1146 fn test_draw_tri() {

Callers

nothing calls this directly

Calls 1

draw_textFunction · 0.85

Tested by

no test coverage detected