CISC108 Lecture Notes - Lecture 3: Animage, If And Only If
Document Summary
;; quick review: functions, signature, purpose statement, units tests. ;; batch vs. interactive programs, simple countdown clock. ;; boolean operations (and how you might use them in conditionals) ;; design recipe: defining your own types of data. ;; examples of applying design recipe (require 2htdp/image) ; you can test your functions by writing some applications, looking at. ; the output, and seeing if they give the answers you expect. ; suppose you make some change to your function? (this happens all the. In fact, this more typical than writing a function from. ; and/or you make some change to your test cases. ; you have to re-run all your tests! ; this is tedious: you have to enter them and check with your eyeball. ; wouldn"t it be better if the testing could be done and checked. ; take square area example, and transform examples into tests. ; note: these can be put before the function definitions.