Means you are responsible here to throw AssertionError with message "Illegal value of i".
Joined: Aug 08, 2007
one point important is that assert is not security that always go to run. to exame is very important pay attention in the question with assertion.
but do not forget that "is not security that assertion go to run always".
to happen one AssertionError normally the programmer did some of mistake.