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

Function test_sdl_console_write_positions

sdl/src/console.rs:1029–1043  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1027
1028 #[test]
1029 fn test_sdl_console_write_positions() {
1030 let mut test = SdlTest::default();
1031
1032 let cols = test.console().size_chars().unwrap().x;
1033 for c in 0..cols {
1034 test.console().locate(CharsXY { x: c, y: 0 }).unwrap();
1035 test.console().write("").unwrap();
1036 test.console().locate(CharsXY { x: c, y: 2 }).unwrap();
1037 test.console().write("a").unwrap();
1038 test.console().locate(CharsXY { x: c, y: 4 }).unwrap();
1039 test.console().write("bc").unwrap();
1040 }
1041
1042 test.verify("sdl/src", "sdl-write-positions");
1043 }
1044}

Callers

nothing calls this directly

Calls 5

consoleMethod · 0.80
verifyMethod · 0.80
size_charsMethod · 0.45
locateMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected