()
| 975 | |
| 976 | #[test] |
| 977 | fn test_sdl_console_peek_pixel_exact_match() { |
| 978 | let mut test = SdlTest::default(); |
| 979 | |
| 980 | test.console().hide_cursor().unwrap(); |
| 981 | test.console().set_color(Some(15), None).unwrap(); |
| 982 | test.console().draw_pixel(PixelsXY::new(3, 4)).unwrap(); |
| 983 | |
| 984 | assert_eq!(Some(15), test.console().peek_pixel(PixelsXY::new(3, 4)).unwrap()); |
| 985 | } |
| 986 | |
| 987 | #[test] |
| 988 | fn test_sdl_console_peek_pixel_out_of_bounds() { |
nothing calls this directly
no test coverage detected