Skip to content

Commit

Permalink
Fixed test for displaying two consecutive bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
tomekbielaszewski committed Aug 10, 2018
1 parent cb0c3b0 commit df3d15a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,17 @@ public void shouldDraw8PixelsOnLeftUpperCorner() throws Exception {
}

@Test
public void shouldDraw16PixelsOnLeftUpperCorner() throws Exception {
public void shouldDraw8PixelsOnLeftUpperCornerAndBelowFirstLine() throws Exception {
short code = (short) 0xd002;
vm.I = 0x201;
vm.memory[0x201] = (byte) 0b11111111;
vm.memory[0x202] = (byte) 0b11111111;

opcode.execute(code, vm);

for (int i = 0; i < 16; i++) {
for (int i = 0; i < 8; i++) {
assertTrue(String.format("%d %d was not true", i, 0), vm.screen[i][0]);
assertTrue(String.format("%d %d was not true", i, 0), vm.screen[i][1]);
}
}

Expand Down

0 comments on commit df3d15a

Please sign in to comment.