Test string functions
This commit is contained in:
parent
11ee4d006b
commit
0620c777bf
1 changed files with 9 additions and 1 deletions
10
t/strings.t
10
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"))
|
||||||
|
|
Loading…
Reference in a new issue