racket/rackunit

multiple values

Aperta

#71 aperta il 14 ago 2017

 (3 commenti) (5 reazioni) (0 assegnatari)Racket (36 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (20 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

It would be great if check-equal? accepted multiple values in each of its sub-expressions and then just made sure that they had the same number of values and then checked that they were equal. I usually work around this by writing something like:

(check-equal? (call-with-values (lambda () (call-my-multi-valued-function)) list)
              (list 'the 'expected 'results))

Guida contributor