fixing issues from PR
@@ -120,10 +120,11 @@ public class TestLoops {
for (@Parallel int i = 0; i < a.length; i++){
if (i == 4) {
a[i] = 4;
- }
+ } else {
a[i] = 10;
}
}
+ }
@Test
public void testIfInsideForLoop() {
@@ -143,7 +144,9 @@ public class TestLoops {
for (int i = 0; i < a.length; i++) {
if (i == 4) {
assertEquals(4, a[i]);
- } else assertEquals(10, a[i]);
+ } else {
+ assertEquals(10, a[i]);
+ }
}
}
@@ -270,6 +273,7 @@ public class TestLoops {
final int size = 10;
int [] a = new int[size];
+
Arrays.fill(a,1);
//@formatter:off
