Fixes #2219: correct the contract for rem

I didn't use the suggested fix by either @Syntacticlosure or @mfelleisen
because there's another usage of `not-has?` which is correct already, so
changing `not-has?` would break it.
This commit is contained in:
Sorawee Porncharoenwase 2020-04-23 04:41:44 -07:00 committed by Sam Tobin-Hochstadt
parent f6f5cafed1
commit b0cb1adda6

View File

@ -71,7 +71,7 @@
[rem (->d ([d dictionary?]
[k (and/c symbol? (lambda (k) (has? d k)))])
()
[result (and/c dictionary? not-has?)]
[result (and/c dictionary? (lambda (d) ((not-has? d) k)))]
#:post-cond
(= (count d) (+ (count result) 1)))]))
;; end of interface