From 0620c777bfc63ee7de968dd63d4c6856188e550e Mon Sep 17 00:00:00 2001 From: MadMaurice Date: Sat, 3 Apr 2021 18:48:10 +0200 Subject: [PATCH] Test string functions --- t/strings.t | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/t/strings.t b/t/strings.t index 2587cf1..9dbfdb7 100644 --- a/t/strings.t +++ b/t/strings.t @@ -1 +1,9 @@ -(expect "hello has 5 letters" (= (length "hello") 5)) +(expect "length of string" (= (length "hello") 5)) + +(expect "string-upcase" (string= (string-upcase "helLo") "HELLO")) + +(expect "string-downcase" (string= (string-downcase "HEllO") "hello")) + +(expect "string-capitalize" + (string= (string-capitalize "hello world i like cheese") + "Hello World I Like Cheese"))