Ad
  • Custom User Avatar

    No random tests in Haskell

  • Custom User Avatar

    Approved

  • Custom User Avatar

    python new test framework is required. updated in this fork

  • Custom User Avatar

    fixed by latest fork

  • Custom User Avatar

    Approved

  • Custom User Avatar

    python new test framework is required. updated in this fork

  • Custom User Avatar

    You're making a function that will be called a number of times. All your code should (in 99% of cases) be contained inside this function. Any global variables retain state between calls.

  • Custom User Avatar

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

  • Custom User Avatar

    Many thanks!!!

  • Default User Avatar

    You shouldn't use input on Codewars in general. A number will be fed to your function in the tests. Just assume that function will receive the necessary parameters to execute without having the user entering any kind of number. Hope this helps! If you reset your solution, you should use "n" as the number who will be necessary to code your solution.

  • Custom User Avatar

    .

  • Custom User Avatar

    Scala translation with upgrade to 3.0

  • Custom User Avatar

    Oh damn 💀

  • Custom User Avatar

    They are not identical.

  • Custom User Avatar

    My JS solution is passing the preliminary tests for 10 numbers, one number, and one random 1-100 integer, but for the 30 and 100 numbers tests that run when I try to attempt the kata it's returning a fail. Here's the error code for 30, and it's the same with 100 - i.e., it looks like the expected and actual results are identical! Am I missing something simple here?

    Thanks in advance! (edited to try and get the actual and expected arrays to align so they can be more easily compared...)

    Fails with 30 numbers!: expected

    '[1,2,"Fizz",4,"Buzz","Fizz",7,8,"Fizz","Buzz",11,"Fizz",13,14,"Fizzbuzz",16,17,"Fizz",19,"Buzz","Fizz",22,23,"Fizz","Buzz",26,"Fizz",28,29,"Fizzbuzz"]' to equal '[1,2,"Fizz",4,"Buzz","Fizz",7,8,"Fizz","Buzz",11,"Fizz",13,14,"FizzBuzz",16,17,"Fizz",19,"Buzz","Fizz",22,23,"Fizz","Buzz",26,"Fizz",28,29,"FizzBuzz"]'

  • Loading more items...