Minilisp.pm/t/strings.t

14 lines
386 B
Turing

(plan 5)
(expect "length of string" (= (length "hello") 5))
(expect "empty strings" (= (length "") 0))
(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"))