racket/rackunit

multiple values

Aberta

#71 aberto em 14 de ago. de 2017

 (3 comentários) (5 reações) (0 responsável)Racket (36 forks)github user discovery
enhancementhelp wanted

Métricas do repositório

Stars
 (20 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 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))

Guia do colaborador