Ad
  • Custom User Avatar

    oh ok! thanks!

  • Default User Avatar

    mycode passed all except this ''expected:<[ ]> but was:<[]>''. any suggesstions??

  • Custom User Avatar

    A function that returns different datatypes is a bad practice. Let's say the output of your function is then used by a different one and it expects a string, if you return None, it could throw an error when trying to read its length.

  • Custom User Avatar

    can you explain what that means a little more? I'm using codewars to teach myself

  • Custom User Avatar

    They are different data types, so no.

  • Custom User Avatar

    aren't they both null values? if there was nothing input to begin with shouldn't both be acceptable values?

  • Custom User Avatar

    Why would it expect None? Not a kata issue.

  • Custom User Avatar

    Don't know if anyone else had an issue where any empty inputs would error out expecting '' instead of none on the python test. otherwise it was a fun little challenge

  • Default User Avatar
  • Default User Avatar

    I'm trying to solve kata in Haskell. According to output from random tests my code fail on strings like "\na", "a\n", "a\t". if i understood everything correctly, this strings should be returned as is or i'm wrong? Tests do not show expected results. I tested code on local mashine and it works fine on those input.

  • Default User Avatar

    thanks so much!, embarassing mistake

  • Custom User Avatar

    It looks like you're not returning any value. Printing is for your own debugging.

  • Default User Avatar

    Hi there!, can someone share some light on this:

    Test Results:
    Fixed Tests
    Basic Test Cases
    Log
    'ehT kciuq nworb xof spmuj revo eht yzal .god'
    None should equal 'ehT kciuq nworb xof spmuj revo eht yzal .god'
    Log
    'elppa'
    None should equal 'elppa'
    Log
    'a b c d'
    None should equal 'a b c d'
    Log
    'elbuod decaps sdrow'
    None should equal 'elbuod decaps sdrow'

    I'm wondering what I'm doing wrong, they are strings, i get the correct output respecting the spaces....hmmm

  • Default User Avatar

    They are there. I checked.

  • Default User Avatar

    in python when i reset to restart coding there is no sample tests.

  • Loading more items...