From 2b73b45c5fd850fff0a6471f40ce7ef75f652528 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com>
Date: Tue, 6 Jun 2023 10:50:09 +0100
Subject: [PATCH] chore: added firstwhite rom

---
 frontends/sdl/res/test/firstwhite.png | Bin 0 -> 885 bytes
 frontends/sdl/src/test.rs             |  11 +++++++++++
 2 files changed, 11 insertions(+)
 create mode 100644 frontends/sdl/res/test/firstwhite.png

diff --git a/frontends/sdl/res/test/firstwhite.png b/frontends/sdl/res/test/firstwhite.png
new file mode 100644
index 0000000000000000000000000000000000000000..b763f1524a054b247112e510bc2d5bfb3f894964
GIT binary patch
literal 885
zcmeAS@N?(olHy`uVBq!ia0vp^3xIe62NRHFxc>b*0|T>-r;B4q1>@TXj1yEmC#iS}
zb+4Ma+ug+_EiEl96bQ;e;QJX`fD(|=;o%@#($d`ATv~R|p2>CICoR0Zw7lH^JjhC)
zq^)N||ECA;eD&W*EBtS~+tXG5Pp^piS}!?u^*{Z^MOXi)hOGOwzvoow|LLQOMuUK^
bsi2<4H;dJ7ZRQjmP<HZk^>bP0l+XkK1TYR0

literal 0
HcmV?d00001

diff --git a/frontends/sdl/src/test.rs b/frontends/sdl/src/test.rs
index 84bad716..154a5a34 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);
+    }
 }
-- 
GitLab