Breaking out of loop after test condition verification.

This commit is contained in:
Izzat Bahadirov 2013-06-04 15:35:54 -04:00
parent 01cfa02bfe
commit 6d48e5db17

View File

@ -272,6 +272,7 @@ public class JumboStringConversionTest {
for (Instruction instr: writeUtil.getInstructions()) {
if (codeOffset == 21) {
Assert.assertEquals("array payload was not aligned properly", instr.getOpcode(), Opcode.NOP);
break;
}
codeOffset += instr.getCodeUnits();
}
@ -289,6 +290,7 @@ public class JumboStringConversionTest {
for (Instruction instr: writeUtil.getInstructions()) {
if (codeOffset == 7) {
Assert.assertEquals("packed switch payload was not aligned properly", instr.getOpcode(), Opcode.NOP);
break;
}
codeOffset += instr.getCodeUnits();
}
@ -307,6 +309,7 @@ public class JumboStringConversionTest {
for (Instruction instr: writeUtil.getInstructions()) {
if (codeOffset == 15) {
Assert.assertEquals("packed switch payload was not aligned properly", instr.getOpcode(), Opcode.NOP);
break;
}
codeOffset += instr.getCodeUnits();
}