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

Function test_sdl_console_colors

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

Source from the content-addressed store, hash-verified

547
548 #[test]
549 fn test_sdl_console_colors() {
550 let mut test = SdlTest::default();
551
552 test.console().print("Default colors").unwrap();
553 test.console().print("").unwrap();
554 test.console().set_color(Some(14), Some(4)).unwrap();
555 test.console().print("Cyan on blue").unwrap();
556 test.console().set_color(None, Some(1)).unwrap();
557 test.console().print("Default on red").unwrap();
558 test.console().set_color(Some(11), None).unwrap();
559 test.console().print("Yellow on default").unwrap();
560 test.console().set_color(None, None).unwrap();
561 test.console().print("").unwrap();
562 test.console().print("Back to default colors").unwrap();
563
564 test.verify("sdl/src", "sdl-colors");
565 }
566
567 #[test]
568 fn test_sdl_console_scroll_and_wrap() {

Callers

nothing calls this directly

Calls 4

consoleMethod · 0.80
verifyMethod · 0.80
printMethod · 0.45
set_colorMethod · 0.45

Tested by

no test coverage detected