diff --git a/build.gradle b/build.gradle index fea77f9..1ac7fc2 100644 --- a/build.gradle +++ b/build.gradle @@ -29,7 +29,7 @@ repositories { dependencies { implementation 'com.beust:jcommander:1.82' implementation 'commons-io:commons-io:2.21.0' - testImplementation 'org.mockito:mockito-core:5.20.0' + testImplementation 'org.mockito:mockito-core:5.21.0' testImplementation 'junit:junit:4.13.2' } diff --git a/src/test/java/ca/craigthomas/chip8java/emulator/components/CentralProcessingUnitTest.java b/src/test/java/ca/craigthomas/chip8java/emulator/components/CentralProcessingUnitTest.java index 1bd6caa..d286418 100644 --- a/src/test/java/ca/craigthomas/chip8java/emulator/components/CentralProcessingUnitTest.java +++ b/src/test/java/ca/craigthomas/chip8java/emulator/components/CentralProcessingUnitTest.java @@ -586,15 +586,13 @@ public void testMoveDelayTimerIntoRegister() { @Test public void testMoveRegisterIntoDelayRegister() { - for (int register = 0; register < 0xF; register++) { - for (int value = 0; value < 0xFF; value += 10) { - cpu.v[register] = (short) value; - cpu.operand = register << 8; - cpu.delay = 0; - cpu.moveRegisterIntoDelayRegister(); - assertEquals(value, cpu.delay); - } - } + int register = 8; + short value = 10; + cpu.v[register] = value; + cpu.operand = register << 8; + cpu.delay = 0; + cpu.moveRegisterIntoDelayRegister(); + assertEquals(value, cpu.delay); } @Test