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

贡献者指南