expand pretty-print tests (PR 9567)
svn: r10552
This commit is contained in:
parent
a1c1c7e6df
commit
6cbd467e17
|
@ -104,9 +104,14 @@
|
|||
(test #t pretty-print-style-table? (pretty-print-extend-style-table (pretty-print-current-style-table) null null))
|
||||
|
||||
(define (test-indent-variants pretty-format quote-abbrev?)
|
||||
(define-struct a (x y) #:transparent)
|
||||
(parameterize ([pretty-print-columns 20])
|
||||
(test "(1234567890 1 2 3 4)" pretty-format '(1234567890 1 2 3 4))
|
||||
(test "(1234567890xx\n 1\n 2\n 3\n 4)" pretty-format '(1234567890xx 1 2 3 4))
|
||||
(test "#(1234567890xx\n 1\n 2\n 3\n 4)" pretty-format (vector '1234567890xx 1 2 3 4))
|
||||
(test "#s(apple\n 1234567890xx\n 1\n 2\n 3\n 4)" pretty-format #s(apple 1234567890xx 1 2 3 4))
|
||||
(test "#(struct:a\n 1234567890xx\n 1)" pretty-format (make-a '1234567890xx 1))
|
||||
(test "#hash((a . 567890xx)\n (b . 1))" pretty-format #hash((a . 567890xx) (b . 1)))
|
||||
(test "(lambda 1234567890\n 1\n 2\n 3\n 4)" pretty-format '(lambda 1234567890 1 2 3 4))
|
||||
(test "(if 12345678903333\n a\n b)" pretty-format '(if 12345678903333 a b))
|
||||
(test "(cond\n (12345678903333 a)\n (else b))" pretty-format '(cond [12345678903333 a][else b]))
|
||||
|
|
Loading…
Reference in New Issue
Block a user