[JAVA-4584] Enabled core-java-12 module (#14926)

Enabled 12,13,15
This commit is contained in:
panos-kakos
2023-10-16 12:52:33 +03:00
committed by GitHub
parent b0dc3b228a
commit 6d7040879b
9 changed files with 15 additions and 112 deletions
@@ -19,19 +19,6 @@ public class SwitchUnitTest {
Assert.assertEquals(value, 2);
}
@Test
public void switchLocalVariable(){
var month = Month.AUG;
int i = switch (month){
case JAN,JUN, JUL -> 3;
case FEB,SEP, OCT, NOV, DEC -> 1;
case MAR,MAY, APR, AUG -> {
int j = month.toString().length() * 4;
break j;
}
};
Assert.assertEquals(12, i);
}
enum Month {JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC}
}