ref: 6efc3cb390b56e0d5d645098bdd372dbef959445
parent: 31e59bb74dcaa3273e93a6585e902df407f17ac6
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Tue Jan 28 20:06:31 EST 2025
tests: string-split
--- a/test/unittest.lsp
+++ b/test/unittest.lsp
@@ -517,5 +517,9 @@
(assert (eq? 10 (string-width s)))
(assert (eq? 0 (string-width "")))
+(assert (equal? '("привет" "пока") (string-split s "\0")))
+(assert (equal? '("пр" "вет" "пок" "") (string-split s "аи\0")))
+(assert (equal? '("" "") (string-split "1" "1")))
+
(princ "all tests pass")
(newline)