-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implicit requirement on class and variable names in lab04 #33
Comments
I'm not sure why it's happening, but I think it's trying to go through a bunch of test cases in a list and for some reason the list can't be loaded. I didn't have to implement class BookingStub so I don't think it's required. |
I didn't implement the class |
Gave my TA a ping to notify on this issue. Was also affected by these testcases after 2/5. Likely that the past iterations of this Lab was done using class BookingStub instead of Booking? |
hi! I might be entirely wrong, but I think that BookingStub may be extending on your Booking.java class and is attempting to sort certain bookings to check your code. Not sure if this is why the error occurs, but maybe you can check on whether you have implemented Comparable and coded the compareTo method correctly? |
Is the class/interface that NormalCab is a child of named Driver? If not you can try renaming it. |
This worked for me, seems like we have to use specific Class names in the PE exam as well (I named it CabDriver instead of Driver originally) |
This works for me as well. Probably from past iterations, the cabs must inherit/implement the Driver class/interface and then there is probably some modification from the past that makes us don't know that we have to use that specific naming. Also another one is to rename your jsh from level 5 to
As for this, I think it's not always the case, feels like a clarity issue to me 😕 |
Summary
Lab04 require "BookingStub" class but this is not mentioned in task.txt.
Description:
I fail at this question where it has implicit requirement on this class "BookingStub" and variable "list", but this requirement is not mentioned in the task.txt. I have my own implementation that can pass the sample test cases but failed at codecrunch. My worries is that in the PE where we only have one time to submit the code, how can we know the class names and variable names required by the grader which is not explicitly mentioned in task.txt?
Code Snippets
Attach code snippets (if any)
Screenshots
Screenshots (if any)
The text was updated successfully, but these errors were encountered: