Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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'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?
This solution is wrong; for example it fails on 11111
This comment is hidden because it contains spoiler information about the solution
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.
You've obviously right :) (except for the fact that I'm not very good at Haskell).
Thank you and sorry!
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.
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)]
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.
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"
solved, thanks
i'm still getting the same error
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)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.
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...