ref: e822c8c079058b4561311f5f0ba81d28c5efa30c
parent: f86a95697db4370ac5fc12432aa20117d0754139
author: Ori Bernstein <ori@markovcorp.com>
date: Fri Nov 16 08:40:59 EST 2018
Fix tests. Missing dep.
--- a/lib/std/strfind.myr
+++ b/lib/std/strfind.myr
@@ -31,7 +31,7 @@
elif needle.len == 0 && haystack.len == 0
-> `std.Some 0
;;
- for var i = haystack.len - haystack.len; i > 0; i --
+ for var i = haystack.len - needle.len; i >= 0; i--
for var j = 0; j < needle.len; j++
if haystack[i + j] != needle[j]
goto next
--- a/lib/thread/bld.sub
+++ b/lib/thread/bld.sub
@@ -91,3 +91,7 @@
lib ../std:std
lib thread
;;
+
+testdeps =
+ ../testr:testr
+;;