Earn extra honor and gain new allies!
Honor is earned for each new codewarrior who joins.
Learn more
  • 51289289?s=100

    VERY INTERESTING

  • Profile pic

    This comment is hidden because it contains spoiler information about the solution

  • Profile pic

    So I was wondering how the expected does the calculation for median.
    Since my solution for median is correct but the expected was giving
    values like 55.5 and 64.5 when these values didn't exist in the list of scores
    and median is get the middle value.

    Example :
    1,3,5,7,9 = 5
    1,22,33,34,35 = 33

    The value most be the middle number in the list.

  • 9571508?s=100

    Now all works, thanks.

  • 10953369?s=100

    Missed a whole block, I'll blame it on being the morning. Should be good to go.

  • 9571508?s=100

    Sure, sample tests are ok now, final tests (at least for me) still have assertSimilar and don't pass. Could you check it? I'll try later again and if it works, mark it as resolved.

  • 10953369?s=100

    Thanks Chrono, should work now? Would you like to test then mark this issue as resolved. Cheers.

  • 9571508?s=100

    assertSimilar is used (you can see the sample tests), it turns both objects to strings and that's why it fails. assertDeepEquals should be used instead. You can define your keys in the expected order too in the meantime.

  • 6780085?s=100

    Not sure how you are checking for equality in JavaScript, but the tests do not pass if the returned object's properties are defined in a different order than expected, even though the two are functionally equal:

    Expected: '{ vowels: 1, consonants: 3 }', instead got: '{ consonants: 3, vowels: 1 }'

  • 32236948?s=100

    look at the sample tests: info isn't a keyword in any case, but depending on the language you use and/or the design you choose to implement, info will be either a property (x.info) or a method (x.info() or x.getInfo() or..., again, depending on your language).

    => you have to design your class so that it behaves consistently with what you see in the sample tests of your language. "Consistently" meaning here "whatever you choose to implement that can pass the tests".

    EDIT: don't forget to tell about the language you use (JS, I saw), when you post this kind of question, that avoids other user to go through your profile page (and even that might not be helpful if you practice several languages)

  • Profile pic

    Hi, Sorry if this has already been explained but what is get info()?
    Is 'info' also a keyword like 'get'?

    where else can i use 'get' and where can i find other 'get' keywords?
    There was 'get area' on mnd example...
    thnx

  • 39382130?s=100

    The test randomly fails and succedes for the same SQL query :( The testing framework is not robust or cannot handle temporal views.

  • 40404519?s=100

    Hmmm...... there's a CoffeeScript translation waiting.

  • Profile pic

    Wow. The IDE wouldnt import urllib for me.
    Learnt a fair bit about encoding I guess...

  • Profile pic

    column order in the test does not fit the schema provided in the description

  • Loading more items...