MCPcopy Create free account
hub / github.com/endbasic/endbasic / test_font_glyph_printable

Function test_font_glyph_printable

std/src/gfx/lcd/fonts/mod.rs:112–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110
111 #[test]
112 fn test_font_glyph_printable() {
113 let font = &FONT_5X8;
114
115 let offset = (usize::from(b'a') - usize::from(b' ')) * 8;
116 let expected = &font.data[offset..offset + 8];
117
118 let data = font.glyph('a');
119 assert_eq!(expected, data);
120 }
121
122 #[test]
123 fn test_font_glyph_non_printable() {

Callers

nothing calls this directly

Calls 1

glyphMethod · 0.80

Tested by

no test coverage detected