shithub: sl

Download patch

ref: 7c3809229021fa3206971e359ed6c7c0f538897a
parent: 0826ef1accdf264f6c719f03876449b5cdffaccc
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Mon Mar 24 01:19:53 EDT 2025

str-find: unit test previous crash fix

--- a/test/unittest.sl
+++ b/test/unittest.sl
@@ -617,6 +617,9 @@
 (assert-fail (str-find s 0))
 (assert-fail (str-find s (byte #\o)))
 
+(assert (not (str-find "" "1")))
+(assert (not (str-find "1" "11")))
+
 (assert (equal? "1.5" (num->str 1.5)))
 (assert (equal? "-3039" (num->str (s16 -12345) 16)))
 (assert (equal? "111111111111111111111111111111111" (num->str   111111111111111111111111111111111)))