20 likes | 112 Views
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
E N D
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
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