racket/rackunit

multiple values

開放

#71 建立於 2017年8月14日

 (3 則留言) (5 個反應) (0 位負責人)Racket (36 個分叉)github user discovery
enhancementhelp wanted

倉庫指標

星標
 (20 顆星)
PR 合併指標
 (30 天內沒有已合併 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))

貢獻者指南