Commit e3acefff authored by pfdietz's avatar pfdietz

More tests of STRING-TRIM.

parent bcc99a97
......@@ -61,6 +61,49 @@
"abcdaba"
"cd")
(deftest string-trim.8
(let* ((s (copy-seq "abcdaba"))
(s2 (string-trim (make-array 2 :initial-contents '(#\a #\b #\c #\d)
:element-type 'character
:fill-pointer 2)
s)))
(values s s2))
"abcdaba"
"cd")
(deftest string-trim.9
(let* ((s (make-array 7 :initial-contents (coerce "abcdaba" 'list)
:element-type 'character
))
(s2 (string-trim "ab" s)))
(values s s2))
"abcdaba"
"cd")
(deftest string-trim.10
(let* ((s (make-array 9 :initial-contents (coerce "abcdabadd" 'list)
:element-type 'character
:fill-pointer 7))
(s2 (string-trim "ab" s)))
(values s s2))
"abcdaba"
"cd")
(deftest string-trim.11
(let* ((s (make-array 7 :initial-contents (coerce "abcdaba" 'list)
:element-type 'standard-char
))
(s2 (string-trim "ab" s)))
(values s s2))
"abcdaba"
"cd")
(deftest string-trim.12
(let* ((s (make-array 7 :initial-contents (coerce "abcdaba" 'list)
:element-type 'base-char
))
(s2 (string-trim "ab" s)))
(values s s2))
"abcdaba"
"cd")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment