GithubHelp home page GithubHelp logo

Comments (12)

weihan10 avatar weihan10 commented on August 11, 2024 3

Is the class/interface that NormalCab is a child of named Driver? If not you can try renaming it.

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 level5.jsh.

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)

As for this, I think it's not always the case, feels like a clarity issue to me πŸ˜•

from 2122-s2.

feederalert avatar feederalert commented on August 11, 2024 1

image
I'm facing a similar issue for test case 3. Not sure why a sort method for class BookingStub has to be implemented?

The test case worked without submitting the Comparator interface. It is conflicting with Codecrunch's own. Hope it works for you

Thank you so much! It worked after I dropped my Comparable interface from the submission files. I misunderstood the text to mean that I had to create my own Comparable interface.

from 2122-s2.

jingyulim1 avatar jingyulim1 commented on August 11, 2024

Isn't this due to runtime error? I am facing the same issue and it shows runtime error at the top.

image

from 2122-s2.

alantay11 avatar alantay11 commented on August 11, 2024

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.

from 2122-s2.

szeying02 avatar szeying02 commented on August 11, 2024

I didn't implement the class BookingStub and variable list. I think those are part of the private sample cases within code crunch that tests for edge cases. It's possible that they failed to run as a result of runtime error.

from 2122-s2.

feederalert avatar feederalert commented on August 11, 2024

image

I'm facing a similar issue for test case 3. Not sure why a sort method for class BookingStub has to be implemented?

from 2122-s2.

kayyenl avatar kayyenl commented on August 11, 2024

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?

from 2122-s2.

wayneonn avatar wayneonn commented on August 11, 2024

image

I'm facing a similar issue for test case 3. Not sure why a sort method for class BookingStub has to be implemented?

Currently facing the same issue too, wondering why there has to be a sort method.

from 2122-s2.

inas0ng avatar inas0ng commented on August 11, 2024

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?

from 2122-s2.

alantay11 avatar alantay11 commented on August 11, 2024

Is the class/interface that NormalCab is a child of named Driver? If not you can try renaming it.

from 2122-s2.

jingyulim1 avatar jingyulim1 commented on August 11, 2024

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)

from 2122-s2.

wayneonn avatar wayneonn commented on August 11, 2024

image

I'm facing a similar issue for test case 3. Not sure why a sort method for class BookingStub has to be implemented?

The test case worked without submitting the Comparator interface. It is conflicting with Codecrunch's own. Hope it works for you

from 2122-s2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.