add a test for minimum value for error-print-width
This commit is contained in:
parent
8f286fc810
commit
b8eee66b72
|
@ -304,6 +304,14 @@
|
||||||
(test #f 'path-in-code?4 (regexp-match? (regexp-quote (path->bytes super)) (get-output-string o)))))
|
(test #f 'path-in-code?4 (regexp-match? (regexp-quote (path->bytes super)) (get-output-string o)))))
|
||||||
(loop super)))))
|
(loop super)))))
|
||||||
|
|
||||||
|
;; ----------------------------------------
|
||||||
|
;; make sure the minimum value (3) is ok for `error-print-width':
|
||||||
|
(parameterize ([error-print-width 3])
|
||||||
|
(test "..." format "~.a" "abcd")
|
||||||
|
(test "abc" format "~.a" "abc")
|
||||||
|
(test "ab" format "~.a" "ab")
|
||||||
|
(test 3 error-print-width))
|
||||||
|
|
||||||
;; ----------------------------------------
|
;; ----------------------------------------
|
||||||
;; make sure +inf.0 is ok for `print-syntax-width':
|
;; make sure +inf.0 is ok for `print-syntax-width':
|
||||||
(parameterize ([print-syntax-width +inf.0])
|
(parameterize ([print-syntax-width +inf.0])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user