Ad
  • Default User Avatar

    I pass the test but when submitting I get following error:

    /tmp/haskell11792-5-vs152q.xcz5wgsyvi/ChandosNumber/Test.hs:28:34:
    Couldn't match expected type Integer' with actual type Int'
    In the second argument of shouldBe', namely referenceChandos n'
    In the expression: chandos n shouldBe referenceChandos n

    /tmp/haskell11792-5-vs152q.xcz5wgsyvi/ChandosNumber/Test.hs:28:51:
    Couldn't match expected type Int' with actual type Integer'
    In the first argument of referenceChandos', namely n'
    In the second argument of shouldBe', namely referenceChandos n'

  • Default User Avatar

    In haskell my solution fails on the random tests. I think that the test code is counting also the couple (nMax,nMax-diff).
    Can you please check?

  • Default User Avatar

    This solution is wrong; for example it fails on 11111

  • Default User Avatar

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

  • Default User Avatar

    Your list b5436 in the test cases is right only for the first 50 elements, and indeed you are then using only them. Maybe you are already aware about it.

  • Default User Avatar

    You've obviously right :) (except for the fact that I'm not very good at Haskell).
    Thank you and sorry!

  • Default User Avatar

    By submitting I get following error (haskell):

    /tmp/haskell116328-19-szoks2/Codewars/G964/Emirps/Test.hs:2:8: Could not find module `Codewars.G964.Emirps' Use -v to see a list of the files searched for.

  • Default User Avatar

    I'm still getting an error in the random tests due to constants (haskell):

    Falsifiable (after 19 tests): expected: "4+8ay-9cd-3bxy-bxz-12cdy+11cxz+4dxz+8abcdxz" but got: "8ay-9cd-3bxy-bxz-12cdy+11cxz+4dxz+8abcdxz" [("cdy",-12),("cd",-9),("dxz",4),("bxz",-1),("cxz",11),("ay",8),("bxy",-3),("abcdxz",8),("",4)]

  • Default User Avatar

    I need help; I'm always getting such errors:

    works for absolute random tests
    Falsifiable (after 2 tests):
    expected: ""
    but got: "1"
    "1"

    I don't understand if it's a mistake in my code or in the random test.

  • Default User Avatar

    Submitting my code in Haskell I got:

    Random Tests
    Falsifiable (after 13 tests):
    expected: False
    but got: True
    "foo banana textbook baz hola salut hola ahoj foo salut"

    I don't understand why "expected: False"

  • Default User Avatar

    solved, thanks

  • Default User Avatar

    i'm still getting the same error

  • Default User Avatar

    I'm passing the test but trying to submit I get following error:

    /tmp/haskell115924-17-1mg1dhh/Codewars/G964/Weirdgenprime/Test.hs:31:38: Not in scope: frstSeries' Perhaps you meant frstSeriesSol' (line 27)

  • Default User Avatar

    i supposed it passed the tests because there are no test for strings whose length is a multiple of 5. my solution fails only in those cases.

  • Default User Avatar

    my first solution for movingShift "1234567890" 1 return ["123","456","789","0"] but it should be ["12","34","56","78","90"].
    it passed all the tests and was accepted.
    i submitted now also an amended solution.

  • Loading more items...