Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ansi-test
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michał Herda
ansi-test
Commits
dc427410
Commit
dc427410
authored
22 years ago
by
pfdietz
Browse files
Options
Downloads
Patches
Plain Diff
Fixed up some test problems, added comments, added simple-base-string.8
parent
fc06d64f
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
ansi-tests/char-schar.lsp
+3
-3
3 additions, 3 deletions
ansi-tests/char-schar.lsp
ansi-tests/map.lsp
+2
-0
2 additions, 0 deletions
ansi-tests/map.lsp
ansi-tests/reader-test.lsp
+2
-0
2 additions, 0 deletions
ansi-tests/reader-test.lsp
ansi-tests/string.lsp
+4
-0
4 additions, 0 deletions
ansi-tests/string.lsp
with
11 additions
and
3 deletions
ansi-tests/char-schar.lsp
+
3
−
3
View file @
dc427410
...
@@ -23,14 +23,14 @@
...
@@ -23,14 +23,14 @@
"Xbcd" "aXcd" "abXd" "abcX")
"Xbcd" "aXcd" "abXd" "abcX")
(deftest char.3
(deftest char.3
(let ((s (make-array 6 :element-type 'chara
ra
cter
(let ((s (make-array 6 :element-type 'character
:initial-contents '(#\a #\b #\c #\d #\e #\f))))
:initial-contents '(#\a #\b #\c #\d #\e #\f))))
(setf (char s 3) #\X)
(setf (char s 3) #\X)
s)
s)
"abcXef")
"abcXef")
(deftest char.4
(deftest char.4
(let ((s (make-array 6 :element-type 'chara
ra
cter
(let ((s (make-array 6 :element-type 'character
:initial-contents '(#\a #\b #\c #\d #\e #\f)
:initial-contents '(#\a #\b #\c #\d #\e #\f)
:fill-pointer 4)))
:fill-pointer 4)))
(setf (char s 3) #\X)
(setf (char s 3) #\X)
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
"aaaXa")
"aaaXa")
(deftest char.8
(deftest char.8
(let ((s (make-array 6 :element-type 'chara
ra
cter
(let ((s (make-array 6 :element-type 'character
:initial-contents '(#\a #\b #\c #\d #\e #\f)
:initial-contents '(#\a #\b #\c #\d #\e #\f)
:fill-pointer 4)))
:fill-pointer 4)))
(setf (char s 5) #\X)
(setf (char s 5) #\X)
...
...
This diff is collapsed.
Click to expand it.
ansi-tests/map.lsp
+
2
−
0
View file @
dc427410
...
@@ -125,10 +125,12 @@
...
@@ -125,10 +125,12 @@
(map '(simple-vector character) #'identity '(#\a #\b #\c #\d #\e))
(map '(simple-vector character) #'identity '(#\a #\b #\c #\d #\e))
"abcde")
"abcde")
;;; Use a more elaborate form of the simple-array type specifier
(deftest map-string.31
(deftest map-string.31
(map '(simple-array character *) #'identity "abcde")
(map '(simple-array character *) #'identity "abcde")
"abcde")
"abcde")
;;; Use a more elaborate form of the simple-array type specifier
(deftest map-string.32
(deftest map-string.32
(map '(simple-array character 5) #'identity "abcde")
(map '(simple-array character 5) #'identity "abcde")
"abcde")
"abcde")
...
...
This diff is collapsed.
Click to expand it.
ansi-tests/reader-test.lsp
+
2
−
0
View file @
dc427410
...
@@ -97,6 +97,7 @@
...
@@ -97,6 +97,7 @@
"ABCD"))))
"ABCD"))))
t)
t)
#|
(deftest read-symbol-8
(deftest read-symbol-8
(multiple-value-bind (s n)
(multiple-value-bind (s n)
(ignore-errors (read-from-string "::ABCD"))
(ignore-errors (read-from-string "::ABCD"))
...
@@ -107,6 +108,7 @@
...
@@ -107,6 +108,7 @@
(string-equal (symbol-name s)
(string-equal (symbol-name s)
"ABCD"))))
"ABCD"))))
t)
t)
|#
(defun read-symbol-9-body (natoms maxlen)
(defun read-symbol-9-body (natoms maxlen)
(let* ((chars (concatenate 'string
(let* ((chars (concatenate 'string
...
...
This diff is collapsed.
Click to expand it.
ansi-tests/string.lsp
+
4
−
0
View file @
dc427410
...
@@ -108,6 +108,10 @@
...
@@ -108,6 +108,10 @@
(subtypep 'simple-base-string 'simple-string)
(subtypep 'simple-base-string 'simple-string)
t t)
t t)
(deftest simple-base-string.8
(subtypep 'simple-base-string 'simple-vector)
t t)
;;; Tests for simple-string-p
;;; Tests for simple-string-p
(deftest simple-string-p.1
(deftest simple-string-p.1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment