public class
Test {
private Boolean isValid(int i) {
if(i<1 || i>12)
return new Boolean("Incorrect value");
else
return new Boolean(true);
}
private void testValue(int val) {
assert isValid(val) : "Out of range";
}
public void static main(
String s[]) {
Test t=new Test();
t.testValue(22);
}
}
why is this prog doesn't throw assertion error even though assert(isValid) is not true