summaryrefslogtreecommitdiff
path: root/lib/std/test/search.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/test/search.myr')
-rw-r--r--lib/std/test/search.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/test/search.myr b/lib/std/test/search.myr
index eea3680..31e1e63 100644
--- a/lib/std/test/search.myr
+++ b/lib/std/test/search.myr
@@ -5,13 +5,13 @@ const sl = [1, 3, 5, 8, 9, 33]
const main = {
expect(std.lsearch(sl[:], 1, std.numcmp), `std.Some 0)
- expect(std.lsearch(sl[:], 33, std.numcmp), `std.Some sl.len - 1)
+ expect(std.lsearch(sl[:], 33, std.numcmp), `std.Some (sl.len - 1))
expect(std.lsearch(sl[:], 5, std.numcmp), `std.Some 2)
expect(std.lsearch(sl[:], 6, std.numcmp), `std.None)
expect(std.lsearch(sl[:0], 6, std.numcmp), `std.None)
expect(std.bsearch(sl[:], 1, std.numcmp), `std.Some 0)
- expect(std.bsearch(sl[:], 33, std.numcmp), `std.Some sl.len - 1)
+ expect(std.bsearch(sl[:], 33, std.numcmp), `std.Some (sl.len - 1))
expect(std.bsearch(sl[:], 5, std.numcmp), `std.Some 2)
expect(std.bsearch(sl[:], 6, std.numcmp), `std.None)
expect(std.bsearch(sl[:0], 1, std.numcmp), `std.None) /* empty slice */