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
7f0b21e7
Commit
7f0b21e7
authored
21 years ago
by
pfdietz
Browse files
Options
Downloads
Patches
Plain Diff
Begin adding cons/list printing tests
parent
37471cba
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansi-tests/load-printer.lsp
+1
-0
1 addition, 0 deletions
ansi-tests/load-printer.lsp
ansi-tests/print-cons.lsp
+46
-0
46 additions, 0 deletions
ansi-tests/print-cons.lsp
with
47 additions
and
0 deletions
ansi-tests/load-printer.lsp
+
1
−
0
View file @
7f0b21e7
...
@@ -16,3 +16,4 @@
...
@@ -16,3 +16,4 @@
(load "print-characters.lsp")
(load "print-characters.lsp")
(load "print-symbols.lsp")
(load "print-symbols.lsp")
(load "print-strings.lsp")
(load "print-strings.lsp")
(load "print-cons.lsp")
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ansi-tests/print-cons.lsp
0 → 100644
+
46
−
0
View file @
7f0b21e7
;-*- Mode: Lisp -*-
;;;; Author: Paul Dietz
;;;; Created: Mon Apr 19 07:28:40 2004
;;;; Contains: Tests of printing of conses
(in-package :cl-test)
(deftest print.cons.1
(with-standard-io-syntax
(write-to-string '(a) :case :upcase :pretty nil :escape nil :readably nil))
"(A)")
(deftest print.cons.2
(with-standard-io-syntax
(write-to-string '(a b) :case :upcase :pretty nil :escape nil :readably nil))
"(A B)")
(deftest print.cons.3
(with-standard-io-syntax
(write-to-string (cons 'a 'b) :case :upcase :pretty nil :escape nil :readably nil))
"(A . B)")
(deftest print.cons.4
(with-standard-io-syntax
(write-to-string (let ((s '#:x)) (cons s s)) :case :upcase :pretty nil :escape t :readably nil))
"(#:X . #:X)")
(deftest print.cons.5
(with-standard-io-syntax
(write-to-string (let ((s '#:x)) (cons s s)) :case :upcase :pretty nil :escape t :circle t :readably nil))
"(#1=#:X . #1#)")
(deftest print.cons.6
(with-standard-io-syntax
(write-to-string (let ((s1 (make-symbol "X"))
(s2 (make-symbol "X")))
(list s1 s2 s1 s2))
:case :upcase :pretty nil :escape t :circle t :readably nil))
"(#1=#:X #2=#:X #1# #2#)")
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