added in-list
This commit is contained in:
parent
2cca55c38b
commit
f44877bf4b
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user