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
c3f81f85
Commit
c3f81f85
authored
20 years ago
by
pfdietz
Browse files
Options
Downloads
Patches
Plain Diff
Load pprint-dispatch tests, add some pprint-fill tests
parent
ad53c44a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ansi-tests/load-printer.lsp
+2
-0
2 additions, 0 deletions
ansi-tests/load-printer.lsp
ansi-tests/makefile
+1
-1
1 addition, 1 deletion
ansi-tests/makefile
ansi-tests/pprint-fill.lsp
+92
-0
92 additions, 0 deletions
ansi-tests/pprint-fill.lsp
with
95 additions
and
1 deletion
ansi-tests/load-printer.lsp
+
2
−
0
View file @
c3f81f85
...
...
@@ -25,3 +25,5 @@
(load "print-pathname.lsp")
(load "print-structure.lsp")
(load "printer-control-vars.lsp")
(load "pprint-dispatch.lsp")
(load "pprint-fill.lsp")
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ansi-tests/makefile
+
1
−
1
View file @
c3f81f85
...
...
@@ -31,7 +31,7 @@ random-test:
clean
:
@
rm
-f
test.out
*
.cls
*
.fasl
*
.o
*
.so
*
~
*
.fn
*
.x86f
*
.fasl
*
.ufsl
*
.abcl
*
.fas
*
.lib
\#
*
\#
@
rm
-rf
scratch/
@
rm
-f
foo.txt foo.lsp file-that-was-renamed.txt tmp.dat temp.dat
@
rm
-f
foo.txt foo.lsp file-that-was-renamed.txt tmp.dat
tmp2.dat
temp.dat
@
rm
-f
gazonk
*
@
rm
-rf
TMP/
This diff is collapsed.
Click to expand it.
ansi-tests/pprint-fill.lsp
0 → 100644
+
92
−
0
View file @
c3f81f85
;-*- Mode: Lisp -*-
;;;; Author: Paul Dietz
;;;; Created: Fri Jun 25 22:03:01 2004
;;;; Contains: Tests of PPRINT-FILL
(in-package :cl-test)
;;; When printing a non-list, the result is the same as calling WRITE."
(deftest pprint-fill.1
(my-with-standard-io-syntax
(let ((*print-pretty* t)
(*print-readably* nil))
(loop for obj in *mini-universe*
nconc
(and (not (listp obj))
(let ((s1 (write-to-string obj))
(s2 (with-output-to-string (s) (assert (null (pprint-fill s obj))))))
(unless (equal s1 s2)
(list (list obj s1 s2))))))))
nil)
(deftest pprint-fill.2
(my-with-standard-io-syntax
(let ((*print-pretty* nil)
(*print-readably* nil))
(loop for obj in *mini-universe*
nconc
(and (not (listp obj))
(let ((s1 (write-to-string obj))
(s2 (with-output-to-string (s) (assert (null (pprint-fill s obj))))))
(unless (equal s1 s2)
(list (list obj s1 s2))))))))
nil)
(deftest pprint-fill.3
(my-with-standard-io-syntax
(let ((*print-pretty* nil)
(*print-readably* nil)
(*print-right-margin* 100))
(with-output-to-string
(s)
(assert (null (pprint-fill s '(cl-user::|A|)))))))
"(A)")
(deftest pprint-fill.4
(my-with-standard-io-syntax
(let ((*print-pretty* nil)
(*print-readably* nil)
(*print-right-margin* 100))
(with-output-to-string
(s)
(assert (null (pprint-fill s '(cl-user::|A|) t))))))
"(A)")
(deftest pprint-fill.5
(my-with-standard-io-syntax
(let ((*print-pretty* nil)
(*print-readably* nil)
(*print-right-margin* 100))
(with-output-to-string
(s)
(assert (null (pprint-fill s '(cl-user::|A|) nil))))))
"A")
(deftest pprint-fill.6
(my-with-standard-io-syntax
(let ((*print-pretty* nil)
(*print-readably* nil)
(*print-right-margin* 100))
(with-output-to-string
(s)
(assert (null (pprint-fill s '(1 2 3 4 5)))))))
"(1 2 3 4 5)")
(deftest pprint-fill.7
(my-with-standard-io-syntax
(let ((*print-pretty* nil)
(*print-readably* nil)
(*print-right-margin* 100))
(with-output-to-string
(s)
(assert (null (pprint-fill s '((1) (2) #(3) "abc" 5) nil))))))
"(1) (2) #(3) \"abc\" 5")
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