rackunit icon indicating copy to clipboard operation
rackunit copied to clipboard

multiple values

Open rfindler opened this issue 7 years ago • 3 comments

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

rfindler avatar Aug 14 '17 22:08 rfindler

+omega

On Aug 14, 2017, at 6:39 PM, Robby Findler [email protected] wrote:

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)) — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/racket/rackunit/issues/71, or mute the thread https://github.com/notifications/unsubscribe-auth/ABf5-0dII1SCvc4EL_Iu4YBbxjh6OK70ks5sYMyIgaJpZM4O2-9q.

mfelleisen avatar Aug 15 '17 02:08 mfelleisen

is this still an issue? Please consider adding the label good first issue so it is findable:

Issues labeled good first issue in in Racket GitHub repositories

spdegabrielle avatar Jun 18 '20 09:06 spdegabrielle

This this the same issue as #122 ?

AlexKnauth avatar Jun 18 '20 21:06 AlexKnauth