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
ba6ba1a2
Commit
ba6ba1a2
authored
Mar 05, 2004
by
pfdietz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turn off *PRINT-READABLY* by default in most printer tests.
parent
87d147f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
15 deletions
+12
-15
ansi-tests/print-complex.lsp
ansi-tests/print-complex.lsp
+9
-13
ansi-tests/printer-aux.lsp
ansi-tests/printer-aux.lsp
+3
-2
No files found.
ansi-tests/print-complex.lsp
View file @
ba6ba1a2
...
...
@@ -5,21 +5,23 @@
(in-package :cl-test)
(deftest print
-
complex.1
(deftest print
.
complex.1
(equalt
(with-standard-io-syntax
(with-output-to-string (s) (prin1 (complex 1 2) s)))
(let ((*print-readably* nil))
(with-output-to-string (s) (prin1 (complex 1 2) s))))
"#C(1 2)")
t)
(deftest print
-
complex.2
(deftest print
.
complex.2
(equalt
(with-standard-io-syntax
(with-output-to-string (s) (prin1 (complex 1.0 2.0) s)))
(let ((*print-readably* nil))
(with-output-to-string (s) (prin1 (complex 1.0 2.0) s))))
"#C(1.0 2.0)")
t)
(deftest print
-
complex.random.1
(deftest print
.
complex.random.1
(loop for numbits = (random 40)
for bound = (ash 1 numbits)
for r = (- (random (+ bound bound)) bound)
...
...
@@ -29,7 +31,7 @@
nconc (randomly-check-readability (complex r i)))
nil)
(deftest print
-
complex.random.2
(deftest print
.
complex.random.2
(loop for numbits = (random 40)
for bound = (ash 1 numbits)
for num1 = (- (random (+ bound bound)) bound)
...
...
@@ -44,13 +46,7 @@
nil)
;; General floating point complex printing tests will go here
...
...
ansi-tests/printer-aux.lsp
View file @
ba6ba1a2
...
...
@@ -9,8 +9,9 @@
`(deftest ,name
(equalpt
(with-standard-io-syntax
(let ,bindings
(with-output-to-string (*standard-output*) (prin1 ,form))))
(let ((*print-readably* nil))
(let ,bindings
(with-output-to-string (*standard-output*) (prin1 ,form)))))
,result)
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