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

Function test_font_glyph_non_printable

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

Source from the content-addressed store, hash-verified

121
122 #[test]
123 fn test_font_glyph_non_printable() {
124 let font = &FONT_5X8;
125
126 let offset = (usize::from(b'?') - usize::from(b' ')) * 8;
127 let expected = &font.data[offset..offset + 8];
128
129 let data = font.glyph(char::from(30));
130 assert_eq!(expected, data);
131 }
132}

Callers

nothing calls this directly

Calls 1

glyphMethod · 0.80

Tested by

no test coverage detected