Minilisp.pm/t/strings.t
2021-04-09 00:01:27 +02:00

11 lines
342 B
Turing

(plan 4)
(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"))