Like with the Matrix exercise I have run ‘exercism test’ and found all tests pass. The found that ‘exercism submit src/BinarySearch.hs package.yaml’ successfully submits my code but the result is failure.
Below is result of running ‘exercism test’
Running tests via stack test
binary-search-1.3.0.0: unregistering (local file changes: package.yaml)
binary-search> build (lib + test) with ghc-9.6.7
Preprocessing library for binary-search-1.3.0.0…
Building library for binary-search-1.3.0.0…
Preprocessing test suite ‘test’ for binary-search-1.3.0.0…
Building test suite ‘test’ for binary-search-1.3.0.0…
binary-search> copy/register
Installing library in /home/colin/exercism/haskell/binary-search/.stack-work/install/x86_64-linux/6205f5ff05a26f7dd1c0b14f9e9588392a94ecdc190d7200aaaf7b8d494144f1/9.6.7/lib/x86_64-linux-ghc-9.6.7/binary-search-1.3.0.0-15pahGO3B6cCWFBugZLnAA
Registering library for binary-search-1.3.0.0…
binary-search> test (suite: test)
find
finds a value in an array with one element (base 0) [
]
finds a value in the middle of an array (base 0) [
]
finds a value at the beginning of an array (base 0) [
]
finds a value at the end of an array (base 0) [
]
finds a value in an array of odd length (base 0) [
]
finds a value in an array of even length (base 0) [
]
identifies that a value is not included in the array (base 0) [
]
a value smaller than the array’s smallest value is not found (base 0) [
]
a value larger than the array’s largest value is not found (base 0) [
]
nothing is found in an empty array (base 0) [
]
nothing is found when the left and right bounds cross (base 0) [
]
Finished in 0.0013 seconds
11 examples, 0 failures
binary-search> Test suite test passed
Completed 2 action(s).
Below is result of: exercism submit src/BinarySearch.hs package.yaml
~/exercism/haskell/binary-search$ exercism submit src/BinarySearch.hs package.yaml
Your solution has been submitted successfully.
View it at:
https://exercism.org/tracks/haskell/exercises/binary-search
Will provide code in BinarySearch.hs and package.yaml if/as required.