fixed out-of-date docs
This commit is contained in:
parent
c66a727413
commit
dd47006c3d
|
@ -48,19 +48,19 @@ evaluate this file and see if the library is correct.
|
||||||
Here's the result I get:
|
Here's the result I get:
|
||||||
|
|
||||||
@verbatim{
|
@verbatim{
|
||||||
#t
|
|
||||||
--------------------
|
--------------------
|
||||||
FAILURE
|
FAILURE
|
||||||
name: check-equal?
|
name: check-equal?
|
||||||
location: (file-test.rkt 7 0 117 27)
|
location: (file-test.rkt 7 0 117 27)
|
||||||
expression: (check-equal? (my-* 1 2) 2)
|
expression: (check-equal? (my-* 1 2) 2)
|
||||||
params: (4 2)
|
params: (4 2)
|
||||||
|
message: "Simple multiplication"
|
||||||
actual: 4
|
actual: 4
|
||||||
expected: 2
|
expected: 2
|
||||||
|
|
||||||
--------------------}
|
--------------------}
|
||||||
|
|
||||||
The first @racket[#t] indicates the first test passed. The
|
The first test passed and so prints nothing. The
|
||||||
second test failed, as shown by the message.
|
second test failed, as shown by the message.
|
||||||
|
|
||||||
Requiring RackUnit and writing checks is all you need to
|
Requiring RackUnit and writing checks is all you need to
|
||||||
|
|
Loading…
Reference in New Issue
Block a user