From 77583a881b03ce38c8065c40641489fe88b61eb2 Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Sun, 9 Jan 2022 22:55:59 -0800 Subject: Write the linker. --- strings-test.csc | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'strings-test.csc') diff --git a/strings-test.csc b/strings-test.csc index 3fededb..2e6d240 100644 --- a/strings-test.csc +++ b/strings-test.csc @@ -34,7 +34,7 @@ (assert-equal 8 (find "a" "sdfdfdfsasdfe"))) -(test test-str-find-notfound +(test find-notfound (let* ((match "a") (str "def") (got-exception '())) @@ -42,3 +42,19 @@ ((not-found-error? e) (set! got-exception e))) (find match str)) (assert (not-found-error? got-exception)))) + + +(test join-, + (assert-equal "a,b,c" (join "," "a" "b" "c"))) + + +(test join-none + (assert-equal "" (join ","))) + + +(test join-singleton + (assert-equal "x" (join "," "x"))) + + +(test join-empty + (assert-equal "abc" (join "" "a" "b" "c"))) -- cgit v1.3.1