Ad
  • Default User Avatar
  • Default User Avatar

    Ah ok. Can you show me your code?

  • Default User Avatar

    You can add some print-statements to the test yourself, like this:

          next 7 [1..10000] `shouldBe` (Just 8)
          print "passed test1"
    

    That way the terminal will print a test is done when it has succeeded.
    Good luck!

  • Default User Avatar

    Theses tests test if function value gives correct results when provided as last argument. (Remember value argument may be a value or a function :
    You may assume:

    • at least 2 arguments (d1and value) are provided
    • each d argument will be a positive integer
    • value argument may be a number, a string, a boolean, ...

    If value is a function then the result of this function will be attribued to the item.

    )

    In theses cases some values are expected in very first/last items of resulting array (1st item of 1st subarray, last item of last subarray), it seems your solution doesn't return expected values.

    Hope it helps!