diff --git a/frontends/sdl/res/test/firstwhite.png b/frontends/sdl/res/test/firstwhite.png new file mode 100644 index 0000000000000000000000000000000000000000..b763f1524a054b247112e510bc2d5bfb3f894964 Binary files /dev/null and b/frontends/sdl/res/test/firstwhite.png differ diff --git a/frontends/sdl/src/test.rs b/frontends/sdl/src/test.rs index 84bad7165427882dfb0dfb3d9faea92250ff46a1..154a5a34c8b8a7d4588d2ee48451d1f2d0d86765 100644 --- a/frontends/sdl/src/test.rs +++ b/frontends/sdl/src/test.rs @@ -53,4 +53,15 @@ mod tests { let image_result = compare_images(&result, "res/test/dmg_acid2.png"); assert_eq!(image_result, true); } + + #[test] + fn test_firstwhite() { + let result: [u8; FRAME_BUFFER_SIZE] = run_image_test( + "../../res/roms/test/firstwhite.gb", + Some(50000000), + TestOptions::default(), + ); + let image_result = compare_images(&result, "res/test/firstwhite.png"); + assert_eq!(image_result, true); + } }