It's UWAweek 24 (1st semester, 2nd exam week)

help2005

This forum is provided to promote discussion amongst students enrolled in CITS2005 Object Oriented Programming.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying selected article
Showing 1 of 257 articles.
Currently 3 other people reading this forum.


 UWA week 21 (1st semester, week 12) ↓
SVG not supported

Login to reply

👍?
helpful
12:13pm Tue 21st May, Andrew G.

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.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  5:07AM Sep 06 2023
Privacy policy