Ad
  • Custom 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'

  • Custom 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?

  • Custom User Avatar

    This solution is wrong; for example it fails on 11111

  • Custom User Avatar

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

  • Custom 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.

  • Custom User Avatar

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

  • Custom 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.

  • Custom 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)]

  • Custom 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.

  • Custom 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"

  • Custom User Avatar

    solved, thanks

  • Custom User Avatar

    i'm still getting the same error

  • Custom 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)

  • Custom 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.

  • Custom 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...