Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
ansi-test
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Karsten Poeck
ansi-test
Commits
e3acefff
Commit
e3acefff
authored
Oct 04, 2002
by
pfdietz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More tests of STRING-TRIM.
parent
bcc99a97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
ansi-tests/string-trim.lsp
ansi-tests/string-trim.lsp
+43
-0
No files found.
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