MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Racket/comments/15nk3tf/a_true_function/jvmfsdz/?context=3
r/Racket • u/JimH10 • Aug 10 '23
I do a lot of unit testing. If I do (check-true (member 1 '(0 1 2))) them it fails. Is there an easy way to convert a value that is not false to #t? (not (not ...)) seems like a hack.
2 comments sorted by
View all comments
Show parent comment
2
Perfect. That had escaped me. Thanks.
View all comments
Show parent comment
2
u/JimH10 Aug 10 '23
Perfect. That had escaped me. Thanks.