Skip to content

Commit 1c57d38

Browse files
Bump org.mockito:mockito-core from 5.20.0 to 5.21.0 (#67)
* Bump org.mockito:mockito-core from 5.20.0 to 5.21.0 Bumps [org.mockito:mockito-core](https://github.com/mockito/mockito) from 5.20.0 to 5.21.0. - [Release notes](https://github.com/mockito/mockito/releases) - [Commits](mockito/mockito@v5.20.0...v5.21.0) --- updated-dependencies: - dependency-name: org.mockito:mockito-core dependency-version: 5.21.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Update delay register test to reduce complexity. --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Craig Thomas <[email protected]>
1 parent 20e9a11 commit 1c57d38

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ repositories {
2929
dependencies {
3030
implementation 'com.beust:jcommander:1.82'
3131
implementation 'commons-io:commons-io:2.21.0'
32-
testImplementation 'org.mockito:mockito-core:5.20.0'
32+
testImplementation 'org.mockito:mockito-core:5.21.0'
3333
testImplementation 'junit:junit:4.13.2'
3434
}
3535

src/test/java/ca/craigthomas/chip8java/emulator/components/CentralProcessingUnitTest.java

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -586,15 +586,13 @@ public void testMoveDelayTimerIntoRegister() {
586586

587587
@Test
588588
public void testMoveRegisterIntoDelayRegister() {
589-
for (int register = 0; register < 0xF; register++) {
590-
for (int value = 0; value < 0xFF; value += 10) {
591-
cpu.v[register] = (short) value;
592-
cpu.operand = register << 8;
593-
cpu.delay = 0;
594-
cpu.moveRegisterIntoDelayRegister();
595-
assertEquals(value, cpu.delay);
596-
}
597-
}
589+
int register = 8;
590+
short value = 10;
591+
cpu.v[register] = value;
592+
cpu.operand = register << 8;
593+
cpu.delay = 0;
594+
cpu.moveRegisterIntoDelayRegister();
595+
assertEquals(value, cpu.delay);
598596
}
599597

600598
@Test

0 commit comments

Comments
 (0)