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

Function test_draw_text_one_char

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

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

draw_textFunction · 0.85

Tested by

no test coverage detected