added in-list

This commit is contained in:
frogbird 2020-05-28 14:06:50 -05:00 committed by Robby Findler
parent 2cca55c38b
commit f44877bf4b

View File

@ -1540,11 +1540,11 @@
(fail '(expected: "an object" given: "~e") obj)) (fail '(expected: "an object" given: "~e") obj))
(let ([cls (object-ref/unwrap obj)]) (let ([cls (object-ref/unwrap obj)])
(let ([method-ht (class-method-ht cls)]) (let ([method-ht (class-method-ht cls)])
(for ([m methods]) (for ([m (in-list methods)])
(unless (hash-ref method-ht m #f) (unless (hash-ref method-ht m #f)
(fail "no public method ~a" m)))) (fail "no public method ~a" m))))
(let ([field-ht (class-field-ht cls)]) (let ([field-ht (class-field-ht cls)])
(for ([m fields]) (for ([m (in-list fields)])
(unless (hash-ref field-ht m #f) (unless (hash-ref field-ht m #f)
(fail "no public field ~a" m))))) (fail "no public field ~a" m)))))
#t) #t)