Ad
  • Custom User Avatar

    Good point. This now uses a list of candidate names to generate an input list of up to 100 names. Thank you!

  • Custom User Avatar

    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)
    |
    ^^^^^^^^^^^^^^^^^^^^^^^^^

  • Custom User Avatar

    The Scala function should return List[String], not List[String, String]