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.
A couple optimizations are warranted:
(repeatedly len #(rand-nth "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz")
, or something similar withrand-nth
Good point. This now uses a list of candidate names to generate an input list of up to 100 names. Thank you!
Type issue in the test suite?
test/CalculateParityBitSpec.hs:18:105: error:
• Couldn't match expected type ‘Int’ with actual type ‘Word’
• In the third argument of ‘assertEqual’, namely
‘(checkParity parity string)’
In a stmt of a 'do' block:
assertEqual
("checkParity " <> show parity <> " " <> show string)
(refCheckParity parity string) (checkParity parity string)
In the expression:
do assertEqual
("checkParity " <> show parity <> " " <> show string)
(refCheckParity parity string) (checkParity parity string)
|
18 | assertEqual ("checkParity " <> show parity <> " " <> show string) (refCheckParity parity string) (checkParity parity string)
|
^^^^^^^^^^^^^^^^^^^^^^^^^
The Scala function should return List[String], not List[String, String]