1 / 2

What postcondition should we use?

What postcondition should we use?. (define drawing- munge (lambda (thingy) (drawing- h shift thingy (drawing-width thingy ))))) The result is the same width as thingy The result overlaps thingy The result is below thingy The result is immediately to the right of thingy

renata
Télécharger la présentation

What postcondition should we use?

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. What postcondition should we use? (define drawing-munge (lambda (thingy) (drawing-hshift thingy (drawing-width thingy))))) • The result is the same width as thingy • The result overlaps thingy • The result is below thingy • The result is immediately to the right of thingy • A and D

  2. What preconditions should we use? (define drawing-munge (lambda (amt thingy) (drawing-hshift (drawing-vscaleamt thingy) thingy))) • amtmust be a number • (real? amt) is #t • thingy must be a real number • (drawing? thingy) is #t • None of the above

More Related