ANONYMOUS wrote:
> testUnitNewestStudents: ERROR: expected 20948760, received 20948758
>
> in the beginning, I got this error. I found out that the only ids inside my list were :
> students= 20948680,20948681,20948682,20948683,20948686,20948689,20948692,20948694,20948695,20948696,20948698,20948715,20948716,20948717,20948718,20948719,20948720,20948722,20948723,20948724,20948751,20948754,20948755,20948756,20948758
>
> I fixed it and finally got 20948758 but i got this error:
> testUnitNewestStudents: ERROR: too many calls to getPage(): assertion 12 <= 5 failed
>
> however, i did not change the code from the first time, i just moved an incrementation to the end of loop.
>
> why is this so? is anyone else getting error for 20948760
The tests report the first observed issue with your code that caused you to fail the tests. You likely did not see the "too many calls" error originally, because your code was already doing something wrong before it was every checked to see how many calls it made.
Recall from the instructions that your `StudentListIterator` should call `getPage()` only as required. In this case, it is actually possible to pass the test with just 3 calls to `getPage()`, but some allowance has been given for different implementations. 12 is definitely too many, however, and means you must be loading a number of pages that you never need or use.