Add assert-member.
authorChris Hanson <org/chris-hanson/cph>
Sat, 27 Feb 2016 23:08:41 +0000 (15:08 -0800)
committerChris Hanson <org/chris-hanson/cph>
Sat, 27 Feb 2016 23:08:41 +0000 (15:08 -0800)
tests/unit-testing.scm

index 16c4369652814df4a2d5beedaabdcbca1a26f823..24a3f2a79371e227f7996fe12b512ed65753e814 100644 (file)
@@ -389,6 +389,10 @@ USA.
   (binary-assertion (lambda (actual-value expected-list)
                      (and (memv actual-value expected-list) #t))))
 
+(define-for-tests assert-member
+  (binary-assertion (lambda (actual-value expected-list)
+                     (and (member actual-value expected-list) #t))))
+
 (define-for-tests (assert-error thunk condition-types . properties)
   (call-with-current-continuation
    (lambda (k)