racket/rackunit

multiple values

Open

#71 opened on Aug 14, 2017

 (3 comments) (5 reactions) (0 assignees)Racket (36 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (20 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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))

Contributor guide