From 9eed1e2b6aeb134400f8a0ada7233210078df05b Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Sun, 4 Aug 2024 11:17:32 +0200 Subject: [PATCH] Fix compilation error in tests --- breakwater/src/tests.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/breakwater/src/tests.rs b/breakwater/src/tests.rs index c31e9b3..cc2370b 100644 --- a/breakwater/src/tests.rs +++ b/breakwater/src/tests.rs @@ -325,7 +325,7 @@ async fn test_binary_sync_pixels() { #[rstest] #[tokio::test] /// Try painting the very last pixel of the screen. There is only space for a single pixel left. -async fn test_binary_sync_pixels_last_pixel(fb: Arc) { +async fn test_binary_sync_pixels_last_pixel(fb: Arc) { let mut input = Vec::new(); let x = fb.get_width() as u16 - 1; let y = fb.get_height() as u16 - 1; @@ -350,7 +350,7 @@ async fn test_binary_sync_pixels_last_pixel(fb: Arc) { #[rstest] #[tokio::test] /// Try painting some pixels in the middle of the screen -async fn test_binary_sync_pixels_in_the_middle(fb: Arc) { +async fn test_binary_sync_pixels_in_the_middle(fb: Arc) { let mut input = Vec::new(); let mut expected = String::new(); @@ -389,7 +389,7 @@ async fn test_binary_sync_pixels_in_the_middle(fb: Arc) { #[rstest] #[tokio::test] /// Try painting too much pixels, so it overflows the framebuffer. -async fn test_binary_sync_pixels_exceeding_screen(fb: Arc) { +async fn test_binary_sync_pixels_exceeding_screen(fb: Arc) { let mut input = Vec::new(); let x = fb.get_width() as u16 - 1; let y = fb.get_height() as u16 - 1; @@ -410,7 +410,7 @@ async fn test_binary_sync_pixels_exceeding_screen(fb: Arc) { #[tokio::test] /// Try painting more pixels that fit in the buffer. This checks if the parse correctly keeps track of the command /// across multiple parse calls as the pixel screen send is bigger than the buffer. -async fn test_binary_sync_pixels_larger_than_buffer(fb: Arc) { +async fn test_binary_sync_pixels_larger_than_buffer(fb: Arc) { // let fb = Arc::new(FrameBuffer::new(50, 30)); // For testing let num_pixels = (fb.get_width() * fb.get_height()) as u32;