Functional Problem Solving (CSC 151 2015F) : EBoards

CSC151.01 2015F, Class 13: Testing Your Procedures, Revisited


Overview

Preliminaries

Admin

Upcoming Work

Extra Credit Opportunities

Academic

Peer Support

Questions

Can I use two <>'s in section?

Yes, but you probably don't want to do that on problem 1. o will be a much better strategy.

Where can I go to think about problem 2?

Recent homework (3).

What should our tests look like?

You should come up with a wide variety of examples so that if it passes those examples, you'll be relatively confident that it will work on everything, unless the writer is incredibly malicious.

For example

    (check-equal? (minutes (add-times (time 1 40) (time 2 40))) 4)

I think your instructions on rackunit are incorrect.

Probably. We'll look at it.

Can we assume that the parameters are all positive for problem 2?

Yes.

But if you can get it to work with negative numbers, too, that would be really awesome. (Not necessary, but like wicked neat.)

Where do our examples go?

Right after your code, commented out by semicolons. Then copy and paste.

Should we cite our partner on assignment 3?

"Idea taken from problem 110213 on assignment 3, written by my partner and me"

Quiz

Lab

"Sketch the preconditions/postconditions"

Can be more informal than normal preconditions/postconditions.

"Think about other things to test"

Write them out, in informal notation. "I should test what happens when one color is black."