I am trying to use unit-tests with Racket.
Usually, I succeed, and I really like the satchel. However, I am having problems with this particular case.
The function being tested displays two values. How can I check this with rackunit?
When i call:
(game-iter 10)
>> 5 10
I tried using this test:
(check-equal? (game-iter 10) 5 10)
However, this fails:
. . result arity mismatch;
expected number of values not received
expected: 1
received: 2
values...:
user7120460
source
share