Ad
  • Default User Avatar

    Error in the instructions:

    objectToArray({2:5, 9:1}) => [2, 2, 2, 2, 2, 99]
    

    It should read:

    objectToArray({2:5, 9:1}) => [2, 2, 2, 2, 2, 9]
    
  • Default User Avatar

    An error in the test cases prevents a valid solution:

    var obj = {none:0, nada:0, rien: 0};
    Test.assertSimilar(objectToArray(arr),[]);
    

    It should read:

    var obj = {none:0, nada:0, rien: 0};
    Test.assertSimilar(objectToArray(obj),[]);
    
  • Default User Avatar

    Accepted, thank you

  • Default User Avatar

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

  • Default User Avatar

    Marking this resolved, since I don't see the need for another test case.

  • Default User Avatar

    Would you explain what "some submitted solutions fail" means, and how that failure is caused by an uppercase vowel in the string? I'll be happy to add another test case if it's warranted, but I still don't understand your original comment.

  • Default User Avatar

    I don't understand — would you explain in more detail?

  • Default User Avatar

    Great. I attempted to do the same yesterday evening but for some reason was unable to re-publish.

    I'm marking this resolved. Would it be worthwhile for me to incorporate numerals and underscores etc. into the remaining random tests, or would that be overkill?

  • Default User Avatar

    Great, thanks. Both are approved now.

  • Default User Avatar

    Thanks! I see that the Haskell translation includes an additional test (of string helLo wtuorli) to make sure all five vowels are covered; but I don't see the same test added in the CoffeeScript translation. (Clever solution on the latter!)

    Attempted to approve both translations, got error Description cannot be approved, recent changes from related record must be merged first.

  • Default User Avatar

    At @Insti's suggestion, I added one additional test to my previous version, to make sure all five vowels are covered. (That test string is XaeiouX.) You could also add that if you want.

  • Default User Avatar

    Now using s instead of str in Python. Also added random tests for JavaScript, Python, and Ruby. Thanks!

  • Default User Avatar

    Added random tests for JavaScript, Python, and Ruby. Thanks!

  • Default User Avatar

    Added static test including all five vowels for JavaScript, Python, and Ruby. Also added random tests for JavaScript, Python, and Ruby. Thanks!

  • Default User Avatar

    Now using s instead.

  • Loading more items...