Ad
  • Custom User Avatar
  • Custom User Avatar

    The tests are alright, and Python 3 is available now.

  • Custom User Avatar
  • Custom User Avatar

    Reminder: Python 2 will be retired in 2 months, see: https://pythonclock.org/
    So it is completely reasonable to not only open for but switch all katas to Python 3.

  • Custom User Avatar

    Description has changed too much so it only applies to Python.
    Perhaps you can find a way so that python specific advice (such as sub-classing int) only shows up for Python code?

  • Custom User Avatar

    Actual and expected values in Haskell are flipped.

  • Default User Avatar

    yeah, you are right. Thanks for your help.

  • Custom User Avatar

    Try returning some arbitrary value which you know is incorrect (like a list with just 1 random number), and see if you get a message like expected: your_wrong_output, but got: something_else. I think the actual/expected values are flipped, because this case in the fixed tests is correct.

  • Custom User Avatar

    There're no such test cases in JS. You must be mutating the input.

  • Custom User Avatar

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

  • Custom User Avatar

    Good point! I've added negative tests throughout. Thanks for the help.

  • Custom User Avatar

    Tests dont check for negative numbers in Javascript

  • Custom User Avatar

    Can we open this to Python 3? Sigh

  • Custom User Avatar

    Spent a few hours trying to figure out what I am doing wrong. Simple tests work but random tests I fail about 20. Heres an example:

    s = """<txG@<^F#H~H8MxsCYDpde4_SW"yER~]JwO_!g|OcxW$1^:KNRedl$r6l/:=JsiD+[R]bKVws=Op!v"?%9|Tn<7@,{q;r>d:sZH)"""
    b91encode(s) # => _4J>StI@i5oLyF.Th)8=+!tB9!#/`l$e$+Kz<}c6~%DsV@(rcJJ>yZ=?Y3JU@7bjoME3J<b5*KN.6xTP6zT1B1Zpc%nVRQxp1|+Zh|4@53bA$j]nazsFGp.6&5U
    # It should be:   _4J>StI@i5oLyF.Th)8=+!tB9!#/`l$e$+Kz<}c6~%DsV@(rcJJ>yZ=?Y3JU@7bjoME3J<b5*KN.6xTP6zT1B1Zpc%nVRQxp1|+Zh|4@53d">!|$7+)vwUl:>cK
    

    It seems to be the same bug... I am not making my solution using bit shifts as I want to understand it first...
    Any suggestions would be great!

  • Custom User Avatar

    I'm having this same issue (I think) as I pass all tests and random tests except when there is a backtick. I don't quite understand the problem? Could someone ellaborate?

  • Loading more items...