Ad
  • Custom User Avatar
    'It should work for random inputs too:'
    # talks about your function, announces random tests
    
    'expected [ 3, +0, 5, 5, +0, +0, +0, 4 ]'
    # this shows what your function returned
    
    'to deeply equal [ 3, +0, 4 ]'
    # this shows the correct return value
    

    "What your function returned, (shows you)

    was not what should have been returned." (shows you)

    the only thing it doesn't show is the input

  • Custom User Avatar