mirror of
https://github.com/revanced/smali.git
synced 2025-05-28 03:40:12 +02:00
Breaking out of loop after test condition verification.
This commit is contained in:
parent
01cfa02bfe
commit
6d48e5db17
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user