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 the 2 articles in this topic
Showing 2 of 257 articles.
Currently no other people reading this forum.


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

Login to reply

👍?
helpful
7:13pm Wed 22nd May, ANONYMOUS

Hi, I have been getting this error: testUnitNewestStudents: ERROR: too many calls to getPage(): assertion 12 <= 5 failed. I was wondering that if I put a limit on the amount of calls is that an okay way to enhance performance or is it "written only so as to pass the specific provided test cases". Thank you


SVG not supported

Login to reply

👍x1
helpful
11:12am Thu 23rd May, Andrew G.

ANONYMOUS wrote:
> Hi, > > I have been getting this error: testUnitNewestStudents: ERROR: too many calls to getPage(): assertion 12 <= 5 failed. > I was wondering that if I put a limit on the amount of calls is that an okay way to enhance performance or is it "written only so as to pass the specific provided test cases". > > Thank you
I am not 100% sure what you mean by "putting a limit" on it, but I am guessing that this limit would not work in general for other test cases, and so yes, that would be considered to have been "written only so as to pass the specific provided test cases". This is not a matter of "performance". Your implementation is performing API queries to load pages that are then never iterated over. This is contrary to the specification that says to only load pages as required.

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