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.
No random tests
The tests have a typo in them (
9e19 /= 9Em
), the reference solution is bugged and doesn't catch the typo, the tests are inadequate and don't catch the reference solution. Boy, what a mess.Was confused for a second reading your function definitions... specifically the first arguments to
encode
anddecode
. Thought it was some fancy pattern matching because of theas
syntax in defining the functions. :'(Upvoted but it's probably best practice to avoid overshadowing keywords in function arguments in general :')
Hm, that sounds like a bug. You probably want to report it.
I seem to be unable to publish the one labelled as haskell as it is a fork of the "coffeescript" one, and it complains that the solution code is not unique from parent. I'll try some renaming to see what I can do. Also, the unpublish button does nothing.
It seems that you have two translations: one that's published (and mistakenly filed as CoffeeScript), and one that's still a draft (and correctly filed as Haskell).
Hm, that's strange. On the left side, I can see that you have a Haskell translation draft. Did you check your drafts?
I did indeed test it, though there were indeed a few mistakes based on my inexperience with QuickCheck. I've responded further to your comment on the translation directly. No clue why it filed as coffeescript, though! I had some server connection issues while trying to save it the first time, which will not have helped.
return ()
at the end ofhspec
describe "meters"
aroundit "..."
{-# LANGUAGE ScopedTypeVariables #-}
in the testMetric
(which can lead to unexpected clashes and frustrationYou didn't event test your translation (on Codewars). It's filed as a CoffeeScript one!
Translated into Haskell, if you would like to approve it
How should the state of
(x=3) + (x=2)
look after evaluation?{'x':2}
? Or just left as undefined behaviour as it is in C?This comment is hidden because it contains spoiler information about the solution
Unknown error is normally caused by a website error, rather than an error with your code found by the test suite. Try resubmitting!
Loading more items...