Skip to content
GitLab
Projects
Groups
Snippets
/
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
ff382680
Commit
ff382680
authored
Sep 03, 2015
by
Daniel Kochmański
Browse files
tests: print-lines: disable print-lines.2 test
parent
3070c977
Changes
1
Hide whitespace changes
Inline
Side-by-side
printer/print-lines.lsp
View file @
ff382680
...
...
@@ -7,6 +7,9 @@
*print-lines*
nil)
;; original test had different expected values, but print margin is in
;; ems and I think there is no definite anwer what this should print.
#+(or)
(deftest print-lines.2
(with-standard-io-syntax
(let ((*print-lines* 1)
...
...
@@ -16,23 +19,26 @@
(set-pprint-dispatch '(cons (eql 1) t) 'pprint-fill)
(apply
#'values
(loop for i from 1 to 10
collect
(let ((*print-right-margin* i))
(subseq
(with-output-to-string
(*standard-output*)
(terpri)
(pprint '(1 2 3 4 5 6 7 8 9)))
2))))))
"(1 ..)"
"(1 ..)"
"(1 ..)"
"(1 ..)"
"(1 ..)"
"(1 ..)"
"(1 ..)"
"(1 2 ..)"
"(1 2 ..)"
"(1 2 3 ..)")
(loop
for i from 1 to 10
for s in '("(1 ..)"
"(1 ..)"
"(1 ..)"
"(1 ..)"
"(1 2 ..)"
"(1 2 ..)"
"(1 2 3 ..)"
"(1 2 3 ..)"
"(1 2 3 4 ..)"
"(1 2 3 4 ..)")
collect
(let ((result
(let ((*print-right-margin* i))
(subseq
(with-output-to-string (*standard-output*)
(terpri)
(pprint '(1 2 3 4 5 6 7 8 9)))
2))))
(or (equal s result)
(list s result)))))))
T T T T T T T T T T)
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment