SWE 437 In Class Exercise # 7
TDD on the Triangle program


Instructions: Work with your neighbors in groups.

Let's consider the venerable Triangle program. (This problem has been used as a "interview quiz" many times.)

     * @param s1, s2, s3:  sides of a putative triangle
     * decide what type of triangle, if any
Try Koskela's TDD approach by applying the same methods as he demonstrated in Chapter 2.


Now, let's turn to adding functionality with TDD.
  1. Write a test for the triangle method.

  2. Implement enough code to make the test pass.

  3. Refactor as needed.

  4. Lather. Rinse. Repeat.