test: Use write instead of display.
* module/mes/test.scm (seq?, sequal?, seq2?, sless?, sequal2?): Use write for expected, actual.
This commit is contained in:
parent
75655793d4
commit
c9a3fe68ec
|
@ -81,9 +81,9 @@
|
|||
(display ": fail")
|
||||
(newline)
|
||||
(display "expected: ")
|
||||
(display expect) (newline)
|
||||
(write expect) (newline)
|
||||
(display "actual: ")
|
||||
(display a)
|
||||
(write a)
|
||||
(newline)
|
||||
#f)))
|
||||
|
||||
|
@ -93,9 +93,9 @@
|
|||
(display ": fail")
|
||||
(newline)
|
||||
(display "expected: ")
|
||||
(display expect) (newline)
|
||||
(write expect) (newline)
|
||||
(display "actual: ")
|
||||
(display a)
|
||||
(write a)
|
||||
(newline)
|
||||
#f)))
|
||||
|
||||
|
@ -103,24 +103,24 @@
|
|||
(or (eq? a expect)
|
||||
(begin
|
||||
(display ": fail") (newline)
|
||||
(display "expected: ") (display expect) (newline)
|
||||
(display "actual: ") (display a) (newline)
|
||||
(display "expected: ") (write expect) (newline)
|
||||
(display "actual: ") (write a) (newline)
|
||||
#f)))
|
||||
|
||||
(define (sless? a expect)
|
||||
(or (< a expect)
|
||||
(begin
|
||||
(display ": fail") (newline)
|
||||
(display "expected: ") (display expect) (newline)
|
||||
(display "actual: ") (display a) (newline)
|
||||
(display "expected: ") (write expect) (newline)
|
||||
(display "actual: ") (write a) (newline)
|
||||
#f)))
|
||||
|
||||
(define (sequal2? actual expect)
|
||||
(or (equal? actual expect)
|
||||
(begin
|
||||
(display ": fail") (newline)
|
||||
(display "expected: ") (display expect) (newline)
|
||||
(display "actual: ") (display actual) (newline)
|
||||
(display "expected: ") (write expect) (newline)
|
||||
(display "actual: ") (write actual) (newline)
|
||||
#f)))
|
||||
|
||||
(define-macro (pass-if name t)
|
||||
|
|
Loading…
Reference in a new issue