Ad
  • Default User Avatar

    Hi, I have compared my function's output for the example test cases to the expected results, and they match, but for some reason the run fails with the below error when I try to run with the supplied testing:

    Traceback:
    in
    File "./frameworks/python/cw-2.py", line 28, in assert_equals
    expect(actual == expected, message, allow_raise)
    File "./frameworks/python/cw-2.py", line 12, in expect
    if passed:
    ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

    Has anyone else seen this issue?

  • Default User Avatar

    Awesome, thanks - learned some new things from this :)