Skip to content

Commit

Permalink
Skip test for empty array
Browse files Browse the repository at this point in the history
  • Loading branch information
keiravillekode committed Aug 28, 2024
1 parent 1e0a09b commit c4f1932
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions exercises/practice/binary-search/.meta/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ description = "a value larger than the array's largest value is not found"

[f439a0fa-cf42-4262-8ad1-64bf41ce566a]
description = "nothing is found in an empty array"
include = false

[2c353967-b56d-40b8-acff-ce43115eed64]
description = "nothing is found when the left and right bounds cross"
3 changes: 0 additions & 3 deletions exercises/practice/binary-search/test.sml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ val testsuite =
test "a value larger than the array's largest value is not found"
(fn _ => (fn _ => find (Array.fromList [1, 3, 4, 6, 8, 9, 11], 13)) |> Expect.error (Fail "value not in array")),

test "nothing is found in an empty array"
(fn _ => (fn _ => find (Array.fromList [], 1)) |> Expect.error (Fail "value not in array")),

test "nothing is found when the left and right bounds cross"
(fn _ => (fn _ => find (Array.fromList [1, 2], 0)) |> Expect.error (Fail "value not in array"))
]
Expand Down

0 comments on commit c4f1932

Please sign in to comment.