package statements;

import org.junit.Test;

import static org.junit.Assert.assertTrue;

public class For {

	@Test
	public void testFor() {
		int x = 0;
		for (int y = 0; y < 10; y++) {
			x += 2;
		}
		assertTrue(x == 20);
	}
}

@@ -141,16 +141,19 @@
 %0A%09%09int x
+, y
  = 0;%0A%09%09
@@ -161,28 +161,24 @@
 or (
-int y
+x
  = 0; 
-y
+x
  %3C 10; 
-y
+x
 ++) 
@@ -186,14 +186,16 @@
 %0A%09%09%09
-x
+y
  += 
-2
+y++
 ;%0A%09%09
@@ -218,9 +218,31 @@
  == 
-2
+10);%0A%09%09assertTrue(y == 
 0);%0A

test for "for" loop