racket/rackunit

multiple values

オープン

#71 opened on 2017/08/14

 (3 件のコメント) (5 件のリアクション) (0 人の担当者)Racket (36 件のフォーク)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (20 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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

コントリビューターガイド