Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ansi-test
ansi-test
Commits
e3acefff
Commit
e3acefff
authored
Oct 04, 2002
by
pfdietz
Browse files
More tests of STRING-TRIM.
parent
bcc99a97
Changes
1
Hide whitespace changes
Inline
Side-by-side
ansi-tests/string-trim.lsp
View file @
e3acefff
...
@@ -61,6 +61,49 @@
...
@@ -61,6 +61,49 @@
"abcdaba"
"abcdaba"
"cd")
"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")
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment