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
Karsten Poeck
ansi-test
Commits
da94481b
Commit
da94481b
authored
Jun 04, 2005
by
pfdietz
Browse files
Add error tests, argument-evaluated-once tests.
parent
ad337291
Changes
4
Show whitespace changes
Inline
Side-by-side
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
...
...
@@ -138,6 +138,11 @@
(assert (typep s '(string 1)))))
nil)
(deftest string.26
(let ((i 0))
(values (string (progn (incf i) "")) i))
"" 1)
;;; Error tests
(deftest string.error.1
...
...
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