foxygit / fake-08-xbox360 Log in
commit 11dc935e8a99bf408c43b0b01147572a58ff122a
Author:     Jon Bell <j.to.the.bell@gmail.com>
AuthorDate: Fri Jul 1 11:58:55 2022 -0600
Commit:     Jon Bell <j.to.the.bell@gmail.com>
CommitDate: Fri Jul 1 11:58:55 2022 -0600

    fix button state poke tests
---
 test/vmtests.cpp | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/test/vmtests.cpp b/test/vmtests.cpp
index b1b59f3..1daa345 100644
--- a/test/vmtests.cpp
+++ b/test/vmtests.cpp
@@ -271,16 +271,12 @@ TEST_CASE("Vm memory functions") {

         CHECK_EQ(memory->hwState.rngState[0], 20);
     }
-    SUBCASE("poking button state") {
+    SUBCASE("poking button state doesn't affect input") {
         //0000 1010
         vm->vm_poke(0x5f4c, 10);

         CHECK_EQ(memory->hwState.buttonStates[0], 10);
-        CHECK_EQ(input->btn(), 10);
-        CHECK_EQ(input->btn(0), false);
-        CHECK_EQ(input->btn(1), true);
-        CHECK_EQ(input->btn(2), false);
-        CHECK_EQ(input->btn(3), true);
+        CHECK_EQ(input->btn(), 0);
     }
     SUBCASE("poking print attributes") {
         vm->vm_poke(0x5f58, 53);