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
da94481b
Commit
da94481b
authored
Jun 04, 2005
by
pfdietz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add error tests, argument-evaluated-once tests.
parent
ad337291
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
68 additions
and
1 deletion
+68
-1
ansi-tests/char-schar.lsp
ansi-tests/char-schar.lsp
+29
-0
ansi-tests/simple-string-p.lsp
ansi-tests/simple-string-p.lsp
+17
-0
ansi-tests/string.lsp
ansi-tests/string.lsp
+6
-1
ansi-tests/stringp.lsp
ansi-tests/stringp.lsp
+16
-0
No files found.
ansi-tests/char-schar.lsp
View file @
da94481b
...
...
@@ -96,6 +96,20 @@
s i a b c))
#\a "zazzz" 3 1 2 3)
;;; Error tests
(deftest char.error.1
(signals-error (char) program-error)
t)
(deftest char.error.2
(signals-error (char "abc") program-error)
t)
(deftest char.error.3
(signals-error (char "abc" 1 nil) program-error)
t)
;;; Tests of schar
(deftest schar.1
...
...
@@ -162,3 +176,18 @@
(progn (setf c (incf i)) #\a))
s i a b c))
#\a "zazzz" 3 1 2 3)
;;; Error tests
(deftest schar.error.1
(signals-error (schar) program-error)
t)
(deftest schar.error.2
(signals-error (schar "abc") program-error)
t)
(deftest schar.error.3
(signals-error (schar "abc" 1 nil) program-error)
t)
ansi-tests/simple-string-p.lsp
View file @
da94481b
...
...
@@ -58,3 +58,20 @@
:notes (:nil-vectors-are-strings)
(notnot-mv (simple-string-p (make-array '(37) :element-type nil)))
t)
(deftest simple-string-p.10
(let ((i 0))
(values
(notnot (simple-string-p (progn (incf i) "")))
i))
t 1)
;;; Error tests
(deftest simple-string-p.error.1
(signals-error (simple-string-p) program-error)
t)
(deftest simple-string-p.error.2
(signals-error (simple-string-p "" nil) program-error)
t)
ansi-tests/string.lsp
View file @
da94481b
...
...
@@ -136,7 +136,12 @@
(do-special-strings (s "X")
(or (array-has-fill-pointer-p s)
(assert (typep s '(string 1)))))
nil)
nil)
(deftest string.26
(let ((i 0))
(values (string (progn (incf i) "")) i))
"" 1)
;;; Error tests
...
...
ansi-tests/stringp.lsp
View file @
da94481b
...
...
@@ -82,3 +82,19 @@
:initial-contents '(#\a #\b #\c #\d))))
t)
(deftest stringp.15
(let ((i 0))
(values
(notnot (stringp (progn (incf i) "")))
i))
t 1)
;;; Error tests
(deftest stringp.error.1
(signals-error (stringp) program-error)
t)
(deftest stringp.error.2
(signals-error (stringp "" nil) program-error)
t)
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